media-hub
6273
Comment: Beginning of some tests for MPRIS support in media-hub
|
6802
|
Deletions are marked like this. | Additions are marked like this. |
Line 140: | Line 140: |
Test 17: 1. Open Gallery app 2. Play a video to completion 3. Go back to Gallery app 4. Play the same video again 5. The video should start playing |
|
Line 151: | Line 158: |
Test client death STOP: 1. Open music app 2. Play song 3. Go to dash -> music scope 4. Enter album view 5. Focus music-app again and make sure song is playing 6. Kill music-app from spread view 7. Make sure that the song from the music-app stops playing 8. Make sure that upon landing at the music scope, you can press play on any song and it plays |
* Test plan for component: media-hub
Component Checklist: https://wiki.ubuntu.com/Process/Merges/Checklists/system-apps
Trunk URL: lp:media-hub
Ubuntu Package URL (LP): http://launchpad.net/ubuntu/+source/media-hub
Dependents/Clients
- Dash video lens
- mediaplayer-app
- music-app
- webbrowser-app
- mediascanner
- gallery-app
- all other apps that play music or video
Test Plan
This test plan is not supposed to be complete; use it to guide your manual testing so they don't 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 built MPs that are needed for landing
- Ensure that all Autopilot tests pass on the device (mediaplayer-app's and music-app's).
- Plug device into computer and copy videos into "Videos" folder (i.e. /home/phablet/Video)
- Ensure videos are displayed in Video lens
- Tap video from Video lens and ensure that mediaplayer-app plays video
- Ensure that video playback occurs smoothly
- Ensure that mediaplayer-app can pause playback
- Ensure that mediaplayer-app can seek forward and backward
- Seek close to the end of playback and ensure that mediaplayer-app stops playing automatically at the end-of-stream
- Close mediaplayer-app, reopen and ensure that video playback is successful a second time
- Ensure that video playback occurs smoothly
- Copy music into "Music" folder (i.e. /home/phablet/Music)
- Ensure songs are displayed in the Music lens
- Tap a song from Music lens and ensure that music-app plays audio
- Ensure that music playback occurs smoothly without any audible distortion
- Ensure that music-app can pause playback
- Ensure that music-app can seek forward and backward
- Seek close to the end of playback and ensure that music-app stops playing automatically at the end-of-stream
- Close music-app, reopen and ensure that audio playback is successful a second time
- Ensure that music playback occurs smoothly without any audible distortion
Specific Detailed Tests
Test 1:
- Move to the Music scope.
- Select a track from the carousel
- On the details page, press the play button beside the track name
- Swipe from the right to the next track
- Verify that playback stops and nothing crashes
Test 2:
- Move to the music scope.
- Select a track from the carousel
- On the details page, press the play button beside the track name
- Let the phone sleep.
- Verify that music playback doesn't stop
Test 3:
- While the track is playing from the scope and the screen is blank
- Press the power button to get back to the scope
- Verify that music playback doesn't stop
Test 4:
- Move to the Music scope.
- Select a track from the carousel
- Press the Play in music-app button
- Verify that music plays in the music-app
Test 5:
- Move to the Music scope.
- Select a track from the carousel
- Swipe to the next track
- Nothing should crash
Test 6:
- Move to the Video scope
- Select a video from the carousel
- Click on Play
- Video should play in mediaplayer-app
Test 7:
- Play a long video in mediaplayer-app
- Verify that the screen does not turn off nor dim
Test 8:
Play a long video in mediaplayer-app (> 25 minutes)
- Verify that the video does not freeze and video/audio playback successfully completes
Test 9:
- Move to the Video scope
- Select a video from the carousel
- Click on Play
- Wait till the video stops
- Press play button on the mediaplayer-app
- Verify that the video plays again, from the beginning
Test 10:
- Move to the Apps Scope
- Open the Music app
- Select a track play it
- Verify that music plays
Test 11:
- add a video with audio to /home/phablet/Videos/camera
- Open the gallery app
- Select video and play it
- Verify that video and audio plays
Test 12:
- Unplug device
- Make sure the device will advance to the next song when the device is not charging
Test 13:
- Open Clock app
- add new alarm, verify sound chosen is in /usr/share/sounds/*/*
- verify alarm is heard
Test 14:
- Open Gallery app
- Play a video
- As the video is playing go back to the gallery view
- Ensure the screen still dims and turns off automatically
Test 15:
- Open Gallery app
- Play a video.
- Press the Pause/play button repeatedly (about 15-20 times).
- Leave the video in pause state.
- Ensure the screen still dims and turns off automatically.
Test 16:
- Open Media player app
- Play a video
- Press the Pause/play button repeatedly (about 15-20 times)
- Leave the video in pause state but do not exit the media player app
- Ensure the screen still dims and turns off automatically
Test 17:
- Open Gallery app
- Play a video to completion
- Go back to Gallery app
- Play the same video again
- The video should start playing
Test Low Power Scenario:
- bzr branch lp:indicator-power
- cd indicator-power; mkdir build; cd build
- sudo apt-get build-dep indicator-power
- make -j3
- stop indicator-power
- tests/indicator-power-service-cmdline-battery
- Start music playback and type "10" and press enter (10% battery level)
- Make sure that music playback pauses and then resumes when the warning notification clears
- Repeat this by typing "5" and press enter (5% battery level)
- Repeat this for video playback
Test client death STOP:
- Open music app
- Play song
Go to dash -> music scope
- Enter album view
- Focus music-app again and make sure song is playing
- Kill music-app from spread view
- Make sure that the song from the music-app stops playing
- Make sure that upon landing at the music scope, you can press play on any song and it plays
Test MPRIS Control
Test 1:
- After a fresh boot and on the welcome screen, pull down the sound indicator (speaker icon)
- Notice the media controls, previous, play, and next
- Tapping on any of them should do nothing
Test 2:
- Open the music app and start playing a song
- Pull down the sound indicator
- There should be album artwork as well as the song title, artist and album title
- The play button should have changed to a pause button
- Press the previous button, music app should change to the previous song
- Press the next button, music app should change to the next song
- Press the pause button, music app should pause
- Press the play button, music app should play
Process/Merges/TestPlan/media-hub (last edited 2016-08-19 17:46:08 by localhost)