indicator-sound

The source for this document can be gotten from Bazaar:

bzr cat lp:indicator-sound/tests/manual

The source is in the standard manual testing format for Ubuntu QA: Testing/TestCaseFormat

Test Case: indicator-sound/unity7-items-check

Procedure

  • Log in to a Unity 7 user session
  • Go to the panel and click on the Sound indicator
    • Ensure there are items in the menu

Test Case: indicator-sound/unity7-greeter-items-check

Procedure

  • Start a system and wait for the greeter or logout of the current user session
  • Go to the panel and click on the Sound indicator
    • Ensure there are items in the menu

Test Case: indicator-sound/unity8-items-check

Procedure

  • Login to a user session running Unity 8
  • Pull down the top panel until it sticks open
  • Navigate through the tabs until "Sound" is shown
    • Sound is at the top of the menu
    • The menu is populated with items

Test Case: indicator-sound/phone-headphone-media-volume-warning

Procedure

  • NB: phone only
  • NB: high volume must be unapproved at beginning at test. This can be ensured by rebooting or by running "restart indicator-sound" from the command line.

  • On a phone, start playing multimedia that contains audio; e.g. playing audio files in the music app
  • Using the 'volume down' button repeatedly, lower the volume to the lowest setting
  • Plug headphones or ear buds into the phone's headphone jack
  • Press the 'volume up' button repeatedly.
    • At some (hardware-dependent) volume threshold, a high volume confirmation notification should appear with the label "High volume can damage your hearing" containing "OK" and "Cancel" buttons.
  • Press the 'volume up' button repeatedly.
    • While the confirmation notification is visible, the 'volume up' button should have no effect in raising the volume.
  • Press the 'volume down' button.
    • The confirmation notification should disappear
    • The volume should remain unchanged
  • Press the 'volume up' button to re-trigger the confirmation notification
  • Press the confirmation notification's "Cancel" button
    • The confirmation notification should disappear
    • The volume should remain unchanged
  • Press the 'volume up' button to re-trigger the confirmation notification
  • Press the confirmation notification's "OK" button
    • The confirmation notification should disappear
    • The volume should increase by one step; ie the previous 'volume up' being applied
  • Press the 'volume down' button repeatedly
    • The info notification should appear, showing the volume decrease
  • Cycle all the way up and down through the volume levels, starting from minimum, up to maximum, and back to minimum again.
    • The info notification should appear, showing the volume changes
    • The confirmation dialog should not appear, since you've confirmed high volumes already.
  • From a shell, run "gsettings set com.canonical.indicator.sound warning-volume-confirmation-ttl 10" to change the "user has already confirmed high volume" memory to 10 seconds.

  • Wait for 10 seconds to pass
  • Press the 'volume up' button repeatedly.
    • The confirmation notification should appear again.
  • From a shell, run "gsettings reset com.canonical.indicator.sound warning-volume-confirmation-ttl" to restore the TTL setting to its default value.

Test Case: indicator-sound/warning-on-video

Procedure

  • NB: phone only
  • NB: high volume must be unapproved at beginning at test. This can be ensured by rebooting or by running "restart indicator-sound" from the command line.

  • On a phone, start playing a video in the media-player app
  • Using the 'volume down' button repeatedly, lower the volume to the lowest setting
  • Plug headphones or ear buds into the phone's headphone jack
  • Press the 'volume up' button repeatedly.
    • At some (hardware-dependent) volume threshold, a high volume confirmation notification should appear with the label "High volume can damage your hearing" containing "OK" and "Cancel" buttons.
    • Video replay in media-player should pause
  • Press Cancel to dismiss the high volume confirmation notification
  • Press Play to resume video replay in media-player
  • Press the 'volume up' button repeatedly
    • As before, a high volume confirmation notification should appear with the label "High volume can damage your hearing" containing "OK" and "Cancel" buttons.
    • As before, video replay in media-player should pause
  • Press the confirmation notification's "OK" button
    • The confirmation notification should disappear
  • Press Play to resume video replay in media-player
  • Cycle all the way up and down through the volume levels, starting from minimum, up to maximum, and back to minimum again.
    • The info notification should appear, showing the volume changes
    • The confirmation dialog should not appear, since you've confirmed high volumes already.

Test Case: indicator-sound/notification-volume-and-menu-output

Procedure

  • Start the device
  • Push the hardware buttons to increase/decrease volume
    • Check that the OSD notification includes a label with the kind of output used. In this case it should be "Speakers"
  • Plug headphones in.
    • Check that a OSD notification appears with the label stating the new output (headphones)
  • Push the hardware buttons to increase/decrease volume
    • Check that the OSD notification appears with the right label.
  • Check that the sound indicator shows the output device in the Volume label it should be Volume (headphones)
  • Unplug the headphones
    • Check that the OSD notification shows the new output (Speakers again)
    • Check that the sound indicator changed also the Volume label
  • Pair a bluetooth headset
    • Check that the OSD notification shows up with the new output (Bluetooth headphones)
  • Use the hardware buttons to increase/decrease volume
    • Check that the OSD notification shows up with the new output (Bluetooth headphones)
  • Play some music with either headphones or bluetooth headset plugged in.
  • Increase the volume, until the warning shows up, approve it
  • Unplug the headphone or headset
  • Continue playing music
  • plug the headphones in (if the volume was high the warning should appear again).

Test Case: indicator-sound/desktop-players-playback-controls

Procedure

* NB: desktop only

  • On the desktop, with a brand new session:
  • launch a player, check that the player appears in the sound indicator and that it has playback controls
  • launch another player, check that the new player appears in the sound indicator and that it has playback controls.
  • close one of the players, check that the playback controls for the player closed are not visible now.
  • close the other player, no players should be running now. Check that the player controls are visible only for the last player being running.
  • start the player that is not showing the playback controls (the first one being closed previously), check that now the playback controls are visible for the new player only.

Test Case: indicator-sound/call-root-icon

Procedure

* NB: phone only

  • Make a call to the phone, and don't take it
  • Right after that, check that the icon of the indicator is not hidden.

Process/Merges/TestPlan/indicator-sound (last edited 2016-03-30 07:39:32 by localhost)