Image Gallery QA Test Plan
Image Gallery QA Test Plan
Environments
General QA Guidelines
General Use
- Does the tool behave the way that you would expect
- Are you surprised by anything
- Does something take longer than you would expect
- When the tool does something unexpected or takes too long to do something, does the tool provide appropriate feedback
QA Tests
Protocol Perform the following tests using each browser/system environment
Report issues at: http://issues.fluidproject.org/secure/Dashboard.jspa
Please search for issues before reporting them, so as to limit the number of duplicate entries.
State Tests
________________________________________________________
Description Ensures that the image gallery properly traverses through the various states.
Prerequisite Ensures that the uploader component has passed http://wiki.fluidproject.org/display/fluid/Uploader+QA+Test+PlanUploader QA Test Plan.
Protocol Perform these tasks on the following site:
Use the "Image Gallery: Daily Build" link on the Build Site at http://build.fluidproject.org/image-gallery/uploader.html
The Multi-file Uploader
Test 0: On page load with the multi-file uploader
- Procedure
- Open the browser. With IE, ensure the flash 10+ is installed. With other browsers, ensure javascript is enabled
- Navigate to the specified URL
- Expected Results
- The multi-file uploader and a note section are displayed at left and an image viewer at right
- In the multi-uploader, no file is listed in the file queue, "Browse files" button is enabled and "upload" button is disabled
- the right-hand image viewer is empty
Test 1: Mouse, Select several images
- Procedure
- Click "Browse files" button
- select several images from the OS File-Open dialog
- Click "open" in the dialog
- Expected Results
- The selected images with their file name and size are displayed in file queue
- The 'Browse Files' is replaced by an 'Add More' button
- The "Upload" button is enabled
Test 2: Mouse, Upload the selected images in Test 1
- Procedure
- Complete Test 1
- Click "Upload"
- Expected Results
- The images are displayed as "uploaded" state in the file queue
- The images are displayed in the image viewer
- The "Upload" button is disabled
Test 3: Mouse, Upload a few more images
- Procedure
- Click on "Add More"
- Select a few more images that have not been selected in Test 1 from the OS File-Open dialog
- Click "open" in the dialog
- Expected Results
- The selected images with their file name and size are appended into file queue
- The "Upload" button is enabled
Test 4: Keyboard, Upload the selected images in Test 3
-
- Complete Test 1
- Click "Upload"
- Expected Results
- The images are displayed as "uploaded" state in the file queue
- The images selected in Test 3 are appended into the image viewer
- The "Upload" button is disabled
Test 5: Keyboard, Repeat Test 1 - 4
The Single-File Uploader
Test 6: Mouse, On page load with the single-file uploader
- Procedure
- With IE, ensure the flash 10+ is uninstalled. With other browsers, ensure javascript is disabled
- Refresh the page
- Expected Results
- The multi-file uploader is replaced with the single-file uploader
- Other sections on the page stay intact
Test 7: Mouse, Select one image
- Procedure
- Click "browse" button
- select one image from the OS File-Open dialog
- Click "open" in the dialog
- Expected Results
- The page is re-directed to "http://.../uploader.php"
- A link "Back to image gallery demo" is displayed at the top left corner
- The uploaded image is displayed under the link
Test 8: Mouse, Go back to image gallery demo
- Procedure
- Click the link "Back to image gallery demo"
- Expected Results
- The page is re-directed back to "http://.../uploader.html"
- The image gallery demo with the single-file uploader is displayed
Test 9: Keyboard, Repeat Test 6 - 8
Test-to-Fail
Description Tests which should cause errors or not be accepted as input
Protocol Perform these tasks on the following site:
Use the "Image Gallery: Daily Build" link on the Build Site at http://build.fluidproject.org/image-gallery/uploader.html
Test 1: Upload identical files with multi-file uploader
- Procedure
- Open the browser. With IE, ensure the flash 10+ is installed. With other browsers, ensure javascript is enabled. Navigate to the specified URL
- Using the mouse, click the "Add File" button
- Using the mouse, click the 'Browse Files' button
- From the OS file open dialog, choose a selection of files
- Using the mouse, click 'Select' or 'Open'
- Using the mouse, click the 'Browse Files' button
- From the OS file, open dialog, choose the same file as was chosen in step 4
- Click "Upload"
- Expected results
- An error message should be displayed in the uploader file queue besides the identical image that is chosen the second time.
- Another error message should be displayed red and bold underneath the uploader and above the notes section. This message should be the server returned message.
- Stop test
- Refresh the browser to return the page to its initial state.
Note: Due to the bug in the swfupload, the third party library that handles upload in the flash version of the uploader which is used by IE, this test fails in IE. Instead of displaying the error message in file queue and underneath the uploader, IE appends an image with the value of the "src" attribute set to the server returned error message. This results in a broken image link in the image viewer. This is a known issue.