gallery-app

Differences between revisions 14 and 15
Revision 14 as of 2015-02-13 18:05:49
Size: 6167
Editor: pool-173-48-208-107
Comment:
Revision 15 as of 2016-02-24 18:58:36
Size: 6698
Editor: localhost
Comment:
Deletions are marked like this. Additions are marked like this.
Line 74: Line 74:
 * Test adding a corrupted media file:
  * You could open a video recorded using camera-app with a text editor and add some garbage to it
  * Make sure that the thumbnail in Photos/Events view for this file is an icon representing it was not able to load correctly
  * Click on the thumbnail and make sure that there is a text explaining gallery was not able to load it
  * Add this file to an album:
   * Make sure the preview on album page shows the same icon
   * Make sure the preview on album cover shows the same icon

* 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
  • Verify that swiping quickly through photos will not zoom them accidently.
  • 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.
  • Click on a video to play it back. Verify that the video is opened in the mediaplayer-app. Verify pressing back button in mediaplayer-app will return to the gallery.
  • 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 Events view of 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
  • Test selection mode
    • Open Photos view
    • press and hold on a photo to select it
    • click anywhere on the photo (not on the selection box) to open it fullscreen with header visible
    • verify you can swipe through the pictures
    • verify you can click on the checkmark on the toolbar to select that picture, or on x to deselect the picture if it was already selected.
    • verify that when returning to the Photos view the expected pictures are selected
    • the same test can be performed on Events view
    • the same test can be performed when in content-picking mode (i.e. selecting picture from gallery to use as background in system-settings)
  • Test adding a corrupted media file:
    • You could open a video recorded using camera-app with a text editor and add some garbage to it
    • Make sure that the thumbnail in Photos/Events view for this file is an icon representing it was not able to load correctly
    • Click on the thumbnail and make sure that there is a text explaining gallery was not able to load it
    • Add this file to an album:
      • Make sure the preview on album page shows the same icon
      • Make sure the preview on album cover shows the same icon

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.

Process/Merges/TestPlan/gallery-app (last edited 2016-09-28 13:53:41 by localhost)