From Fedora Project Wiki

mNo edit summary
m (Update to meet review.)
Line 6: Line 6:


# This test case can be performed on a '''bare machine'''.
# This test case can be performed on a '''bare machine'''.
# The computer must be equipped with a sound device with multiple ports (speakers and phones).
# The computer must be equipped with a '''sound device with multiple ports''' (speakers and phones), such as laptops.
# Install a desktop version of '''Fedora 34''' (or later).
# Install a desktop version of '''Fedora 34''' (or later).
# Log in as a ''common user''.
# Install the <code>pavucontrol</code> package.
# Install the <code>pavucontrol</code> package.
# Perform the following steps as a '''regular user'''.


== How to test ==
== How to test ==


# Start '''Pavucontrol'''.
# Start '''Pavucontrol''' and check that it starts.  
# Start some sound playing application and play some audio.
# Start some sound playing application and play some audio. Confirm that the audio is audible through the speakers.
# Plug the headphones and check that the output switched to headphones.
# Use the volume slider to adjust the volume to a certain level.
# Unplug the headphones and check that the output returns back to built-in speaker.
# Plug the headphones and check that the output switches to headphones and stops being played over the speakers.
# Repeat the previous steps and watch if the sound volume returns to its previous state.
# Use the volume slider to adjust the volume to a certain level.
# Plug in an HDMI monitor and check that the device appears in the Pavucontrol’s list of devices. Change the output of the playback to be routed to this device on the '''Playback''' tab.
# Unplug the headphones and check that the output returns back to built-in speakers.
# Unplug the HDMI monitor and check that the device disappears from the device list.
# Check that the volume level is the same as you have set in '''Step 3'''.
# Check the volume levels whenever the sound device changes.
# Plug in an HDMI monitor and check that the device appears in the Pavucontrol’s list of devices. Change the output of the playback to be routed to this device on the '''Playback''' tab. Confirm that the sound is played over the HDMI monitor.
# Unplug the HDMI monitor and check that the device disappears from the device list and that the sound plays on the default sound device again and that the volume level has not changed from the level set in '''Step 3'''.


== Expected results ==
== Expected results ==


# '''Pavucontrol''' starts and shows the available sound devices on the '''Output devices''' tab.
# '''Pavucontrol''' starts and shows the available sound devices on the '''Output devices''' tab.
# The audio is playing over the default sound device.
# Plugging and unplugging additional sound device makes them default and the sound output is rerouted to them.
# When headphones are plugged-in, the audio is playing through them, while the speakers get muted.
# The volume level is maintained separately for each of the devices and it should always be restored to the last known state when a device is used.
# Upon unplugging the headphones, the audio starts playing through the speakers again.
# The sound levels are restored to the previously used level for the particular output whenever it is switched to it.
# The HDMI device appears in the list of devices. The output can be routed through this device and it is correctly played back.
# The HDMI device disappears from the list of devices. The output reroutes to the original output device.
# Whenever the output is switched to another device, the volume level should be restored at values that have been set previously.

Revision as of 13:45, 16 February 2021

Pavucontrol — Adding and Removing Devices on-the-fly

This test case tests that devices can be added and removed on-the-fly and that audio is correctly routed through these devices or ports.

Setup

  1. This test case can be performed on a bare machine.
  2. The computer must be equipped with a sound device with multiple ports (speakers and phones), such as laptops.
  3. Install a desktop version of Fedora 34 (or later).
  4. Install the pavucontrol package.
  5. Perform the following steps as a regular user.

How to test

  1. Start Pavucontrol and check that it starts.
  2. Start some sound playing application and play some audio. Confirm that the audio is audible through the speakers.
  3. Use the volume slider to adjust the volume to a certain level.
  4. Plug the headphones and check that the output switches to headphones and stops being played over the speakers.
  5. Use the volume slider to adjust the volume to a certain level.
  6. Unplug the headphones and check that the output returns back to built-in speakers.
  7. Check that the volume level is the same as you have set in Step 3.
  8. Plug in an HDMI monitor and check that the device appears in the Pavucontrol’s list of devices. Change the output of the playback to be routed to this device on the Playback tab. Confirm that the sound is played over the HDMI monitor.
  9. Unplug the HDMI monitor and check that the device disappears from the device list and that the sound plays on the default sound device again and that the volume level has not changed from the level set in Step 3.

Expected results

  1. Pavucontrol starts and shows the available sound devices on the Output devices tab.
  2. Plugging and unplugging additional sound device makes them default and the sound output is rerouted to them.
  3. The volume level is maintained separately for each of the devices and it should always be restored to the last known state when a device is used.