localmediascopes

Differences between revisions 15 and 16
Revision 15 as of 2014-10-07 12:00:18
Size: 6806
Editor: stolowski
Comment:
Revision 16 as of 2014-10-09 14:50:21
Size: 7167
Editor: stolowski
Comment:
Deletions are marked like this. Additions are marked like this.
Line 82: Line 82:
 * Record a video file with the camera app. Go to My Videos and verify that a new video file is shown in the "My Roll" and "Everything" departments, but is not shown in "Downloaded" department. (note: it's important to record a new video file - an old video in the filesystem is not enough for this test due to potential changes to filenames from camera app).

Dependents/Clients

music-app

Test Plan

  • Run all unit tests for mediascanner and unity-scope-mediascanner

  • Install MPs on an updated image on phone or tablet. Ensure that wifi is set up on the device.
  • Reboot phone and ensure that media scanner service is running:
    • $ adb shell
      $ status mediascanner-2.0
      mediascanner-2.0 start/running, process 1234

Local music scope

  • Copy some music in Vorbis and MP3 format to the Music folder of the device via MTP.
  • On the dash, swipe up to bring up the "Manage dash" screen, click "All" and then pick "My Music" to bring up the local music scope.
  • Verify that results are shown for each artist you copied over music for.
    • If 7digital has art for the artist, check that it is displayed correctly in this view.
  • Click on an artist result, and verify that results are displayed for that artist's albums and tracks.
    • If the song/album has embedded cover art, check that it is displayed for those song/album results.
    • If the song/album has no embedded cover art but is a commercial release, check that art from the online service is displayed.
  • Click on an album result to bring up a preview.
    • Check that the same album art is displayed in the preview.
    • Check that a track list is displayed at the bottom of the preview in the expected track order (assuming the files have been tagged with track numbers).
    • Click the small play icon next to one of the tracks and verify that the expected song starts playing inside the preview.
    • Click the pause button next to that track and verify that the song stops playing.
    • Click the "Play in music app" action button, and verify that the music app is launched and starts playing the chosen album.
    • Pause playback in the music app and then switch back to the dash.
    • Click the back arrow in the top left to return to the results screen.
  • Click on a Tracks result to bring up a preview.
    • Check that the same album art is displayed in the preview.
    • Check that the chosen song is shown in a track list at the bottom of the preview.
    • Click the small play icon next to the track and verify that the song starts playing inside the preview.
    • Click the pause button next to the track and verify that the song stops playing.
    • Click the "Play in music app" action button, and verify that the music app is launched and starts playing the chosen song.
    • Pause playback in the music app and then switch back to the dash.
    • Click the back arrow in the top left to return to the results screen.
  • Click the back arrow in the top left to return to the scope's main surfacing page.
  • From the departments list, choose "Albums" and verify that results are shown for the albums copied to the device with cover art displayed as before.
  • Click on a result and verify that an album preview is displayed with the previously described behaviours. Click the back arrow to return to the results.
  • From the departments list, choose "Tracks" and verify that songs copied to the device are displayed in the results list.
  • Click on a result and verify that an song preview is displayed with the previously described behaviours. Click the back arrow to return to the results.
  • From the departments list, choose "Genres" and then a genre of music that was copied to the device. Verify that album results are displayed for music in that genre.
  • Click on a result and verify that an album preview is displayed with the previously described behaviours. Click the back arrow to return to the results.
  • Click the search button and type a word from a song title
    • Check that results are displayed for that song's artist, album and track.
    • Check that the album and track results show previews, and the artist result shows the artist results page.
  • Search for a word in an album name
    • Check that results are displayed for the song's artist, the album and some tracks from that album.
    • Check that the album and track results show previews, and the artist result shows the artist results page.
  • Search for a word in an artist name
    • Check that results are displayed for the artist, and albums and tracks by that artist.
    • Check that the album and track results show previews, and the artist result shows the artist results page.

Music aggregator scope

  • From the main dash screen, swipe to the "Music" page.
  • Verify that the first category is "My Music" and displays artists for songs previously copied to the device.
  • Click on the "My Music" category header and verify that the local music scope is displayed. Click the back button to return to the music aggregator.
  • Verify that subsequent categories display results from Grooveshark and 7digital.
  • Perform a search and verify that results are displayed for local music, Grooveshark and 7digital.
  • Install Songkick scope and enable it in Music scope settings. Enable location data. Verify songkick results appear in a dedicated category of Music results.

Local video scope

  • Copy a video in H264 format to the Videos folder of the device via MTP (videos can be found e.g. at http://samplemedia.linaro.org/).

    • Perform a search for the video via its file name on the videos page of the dash.
    • Check that incremental results are returned
    • Tap a video in the results to show a preview.
      • Check that the play action button launches the media player.
  • Copy a test file that is known to crash GStreamer (the MPEG4 one below was reliable at some time but may no longer be as crashes get fixed) into the Videos folder and make sure that Mediascanner's blacklisting works and it does not go into a crash loop
  • Record a video file with the camera app. Go to My Videos and verify that a new video file is shown in the "My Roll" and "Everything" departments, but is not shown in "Downloaded" department. (note: it's important to record a new video file - an old video in the filesystem is not enough for this test due to potential changes to filenames from camera app).

SD card

  • Insert an SD card that has video and music files
    • verify that music shows up on the dash
    • verify that videos show up on the dash
  • Remove SD card
    • verify that music and videos on card get removed

Test Data

Process/Merges/TestPlan/localmediascopes (last edited 2016-06-20 12:59:44 by stolowski)