gallery-app

Revision 12 as of 2015-02-13 17:12:43

Clear message

* Test plan for component: gallery-app

Dependents/Clients

  • System Settings (choosing background image)
  • Address Book App (choosing profile picture)
  • Camera App (launching, saving photo)
  • Browser app (saving photo, pending..)
  • Messaging app (saving photo, pending..)

Test Plan

This test plan is not supposed to be complete; use it to guide your manual testing so they dont miss big functional areas that are part in the component; also this should be used as guideline to inspire the exploratory testing which should be adapted smartly based on the real content of a MP

  • Install latest (trusty-proposed) image on phone
  • Install freshly build MPs that are needed for landing
  • Ensure that all AP tests pass on the device.
  • Test taking multiple pictures using the Camera and then launching Gallery from Camera and ensuring photos exist in Events view
  • Test opening photos from event view and navigating between them using right/left swipe gesture
  • Test that gallery app launches non-fullscreen (indicator panel visible). It should enter fullscreen mode whenever opening an picture or an albums. It should exit fullscreen mode only when returning to top-level Events, Photos, or Albums view.
  • Test pinch to zoom after opening a picture
  • Test rotating and cropping a picture
  • Test rotating the phone and ensure photo rotates
  • Test that all photos show up in photo view
  • Test that you can create an album and add pictures to it
  • Test that you can launch the camera from within the gallery and then switch back.
  • Add videos to the device in ~/Videos directory. Ensure they are not deleted from disk after running gallery.
  • Add videos to the device in both ~/Videos and ~/Pictures directory. Ensure no videos are displayed in the gallery.
  • Do same test on the desktop (after export DESKTOP_MODE=1). Ensure that the videos are displayed in the gallery-app and can be played back correctly from within the gallery-app
  • System settings: test that you can select a background image from the gallery
  • Address Book app: test that you can select an image from the gallery for a contact's profile picture
  • Test Import
  • Test album cancellation
    • go to album view and delete any existing albums
    • press the "+" button to add an Album
    • press the back button from the header
    • verify the blank album was not added to the list
    • repeat this quickly multiple times and verify the app doesn't freeze
    • now create a new album and add some pictures, verify the album shows up in the list when you return to album view
  • Test open from scope
    • make sure all apps are closed
    • open the camera and take a picture
    • Go to the "My Photos" scope
    • Click on the picture you just took with camera
    • Click the "open" button
    • Verify the gallery-app is launched and the picture is displayed in the gallery.
  • Test .gif files
    • connect phone to computer and copy over some .gif files into Pictures directory
    • launch gallery and make sure the pictures are properly displayed in the events and photos view
    • make sure that editing functions are disabled for gif images (there is no support in backend for this)
  • Test importing files
    • Open gallery
    • Move to the photos view
    • Open the browser-app/Gmail and import some photo using gallery
    • When the process is finished choose do not open the photo in gallery right now
    • Move back to gallery-app, the Events view should be the current view

Stress Testing

Create a library of thousands of photos to do performance testing. Helper script to duplicate a given photo 2000 times:

  • On internal disk

for n in $(seq -w 2000); do cp <reference_picture>.jpg ~/Pictures/picture_${n}.jpg; done
  • On SD card

for n in $(seq -w 2000); do cp <reference_picture>.jpg /media/phablet/<someId>/Pictures/picture_${n}.jpg; done

Several stories need testing in this scenario:

  1. Opening up the app should not freeze or be delayed
  2. You should see a "Loading..." screen (for up to ~30 seconds depending on how many photos/videos are on the SD card) until the first of the photos start to be displayed. Other photos will then continue to be loaded in the background
  3. All navigation and operations (open photo, create album, navigate photos, delete photo, edit photo) should functional during the background loading from SD card, but some might be slightly delayed due to the background operations running.
  4. While photos from SD card background loading, verify that you can take a picture with the camera and it will show up in the Events view. It might be slightly delayed until it shows up due to background processing.
  5. Close the gallery-app and remove the SD card
  6. Re-launch and ensure only the pictures on internal disk are displayed.