Tuesday, January 19, 2010

Test Cases or Checklist for Image Upload

Black box testing for image upload in a form

1. Try to upload file with zero bytes.
Equivalence partitioning
2. Try to upload image less than minimum limit.
3. Try to upload image more than maximum limit.
4. Try to upload image exactly minimum limit.
5. Try to upload image exactly maximum limit.
6. Try to upload image that has hidden text.
7. Try to upload image that is converted from other formats to image format.(.exe file converted to .gif etc).
8. Try to upload image format that is not acceptable - tiff, bmp...
9. Try to upload image format with capital letter extension. (.PNG ...)
10. Try to upload image format with different extension - .png; .jpg; .jpeg; .gif
11. Try to upload image with same names. Image name must be renamed while storing in DB or server.
12. Try to upload image with special characters in it's name.(someName for image's; image! (name) etc)
13. Try to upload image with keywords in its name.(delete.gif)
14. Try to upload image with more than one extension.(imagename.tiff.jpg.gif)
15. Uploaded file must not be directly accessible through URL.

2 comments:

Thamizh said...

Nice points.

How to check the point no: 7?
and for 13th point, whats will be the problem if we use keywords for file name while upload?

Thanks

Ajisha said...

For 7th point -- change the extension of any 'set up file in .exe format' to any image format [.jpg/.gif etc]. And then try to upload this file.