Skip to content
Snippets Groups Projects
Commit 3ea90caf authored by Benani Sagar Kishore's avatar Benani Sagar Kishore Committed by Walter Lozano
Browse files

Combine the multiple audio testcases into one testcase


Signed-off-by: default avatarSagar <SagarKishore.Benani@in.bosch.com>
parent e0d0757f
No related tags found
1 merge request!554Combine the multiple audio testcases into one testcase
Pipeline #624687 passed
metadata:
name: hmi-audio-policy
name: hmi-audio-combined
format: "Apertis Test Definition 1.0"
image-types:
hmi: [ armhf, amd64 ]
......@@ -8,11 +8,11 @@ metadata:
- APT
- OSTree
type: compatibility
exec-type: manual
exec-type: manual
priority: high
maintainer: "Apertis Project"
description: "Test that audio policy to mute song application when switching to video application"
pre-conditions:
description: "Test that the songs present play and can be paused, skipped, volume can be changed up/down and audio policy works correctly"
pre-conditions:
- "The respective target (i.MX6 or UP Squared board) should be on and running"
- "Lilliput/LVDS touch screens must be connected to the respective targets"
- "When running the test on SabreLite boards using the headphone jack to
......@@ -26,19 +26,26 @@ metadata:
- "Audio files play without any glitch and can be paused"
run:
steps:
- "Add the Flathub and Apertis Flatpak repositories (only needed on SDK images)"
- "Add the Flathub repository (only needed on SDK images)"
- $ flatpak remote-add --user --no-sign-verify --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- $ flatpak remote-add --user --if-not-exists apertis https://images.apertis.org/flatpak/repo/apertis.flatpakrepo
- "Install Rhythmbox from Flathub (only needed on SDK images)"
- $ flatpak install --user flathub org.gnome.Rhythmbox3
- "Install Totem (only needed on SDK images)"
- $ flatpak install --user apertis org.apertis.hmi.totem//stable
- "Open the Rhythmbox Music Application"
- $ flatpak run org.gnome.Rhythmbox3
- "Play any song"
- "Play and Pause any song"
- "Click on the skip start button"
- "The next song in the playlist will play and then stop"
- "Now play a new song from the playlist"
- "Click on the skip end button"
- "Next song begins to play"
- "Click on the speaker icon on the display and increase/decrease the volume control"
- "A volume level controller pops up and the sound/volume level can be controlled using this"
- "Ensure that a song is being played"
- "While the song is playing, open the Videos Application"
- $ flatpak run org.apertis.hmi.totem
- "Play any video"
- "Ensure that audio from Videos is played and audio from Rhythmbox is not heard"
- "Close Videos application"
- "Audio from Rhythmbox is heard"
- "Audio from Rhythmbox is heard"
metadata:
name: hmi-audio-play-pause
format: "Apertis Test Definition 1.0"
image-types:
hmi: [ armhf, amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
- OSTree
type: compatibility
exec-type: manual
priority: high
maintainer: "Apertis Project"
description: "Test that the songs present play and can be paused"
pre-conditions:
- "The respective target (i.MX6 or UP Squared board) should be on and running"
- "Lilliput/LVDS touch screens must be connected to the respective targets"
- "When running the test on SabreLite boards using the headphone jack to
check the audio output, the audio manager needs to be configured to route it
accordingly as it defaults to the HDMI output:"
- $ pactl set-default-sink alsa_output.platform-sound.stereo-fallback
- $ pactl set-sink-port alsa_output.platform-sound.stereo-fallback analog-output-headphones
- "After reboot ensure that headphones will not be muted:"
- $ pactl set-sink-mute alsa_output.platform-sound.stereo-fallback false
expected:
- "Audio files play without any glitch and can be paused"
run:
steps:
- "Add the Flathub repository (only needed on SDK images)"
- $ flatpak remote-add --user --no-sign-verify --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- "Install Rhythmbox from Flathub (only needed on SDK images)"
- $ flatpak install --user flathub org.gnome.Rhythmbox3
- "Open the Rhythmbox Music Application"
- $ flatpak run org.gnome.Rhythmbox3
- "Play and Pause any song"
metadata:
name: hmi-audio-skip-start-end
format: "Apertis Test Definition 1.0"
image-types:
hmi: [ armhf, amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
- OSTree
type: compatibility
exec-type: manual
priority: high
maintainer: "Apertis Project"
description: "Test that the songs can be rewind or fast-forwarded"
pre-conditions:
- "The respective target (i.MX6 or UP Squared board) should be on and running"
- "Lilliput/LVDS touch screens must be connected to the respective targets"
- "When running the test on SabreLite boards using the headphone jack to
check the audio output, the audio manager needs to be configured to route it
accordingly as it defaults to the HDMI output:"
- $ pactl set-default-sink alsa_output.platform-sound.stereo-fallback
- $ pactl set-sink-port alsa_output.platform-sound.stereo-fallback analog-output-headphones
- "After reboot ensure that headphones will not be muted:"
- $ pactl set-sink-mute alsa_output.platform-sound.stereo-fallback false
expected:
- "If Skip start button is pressed then the next song from the playlist will play"
- "If Skip end is pressed then if it has been pressed in the last few seconds, it will jump to the previous song, if the song has been allowed to play a bit, then it jumps back to the start of the current track"
run:
steps:
- "Add the Flathub repository (only needed on SDK images)"
- $ flatpak remote-add --user --no-sign-verify --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- "Install Rhythmbox from Flathub (only needed on SDK images)"
- $ flatpak install flathub org.gnome.Rhythmbox3
- "Open the Rhythmbox Music Application"
- $ flatpak run org.gnome.Rhythmbox3
- "Play and Pause any song"
- "Click on the skip start button"
- "The next song in the playlist will play and then stop"
- "Now play a new song from the playlist"
- "Click on the skip end button"
metadata:
name: hmi-audio-volume-control
format: "Apertis Test Definition 1.0"
image-types:
hmi: [ armhf, amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
- OSTree
type: compatibility
exec-type: manual
priority: high
maintainer: "Apertis Project"
description: "Test that the volume controls work as expected"
pre-conditions:
- "The respective target (i.MX6 or UP Squared board) should be on and running"
- "Lilliput/LVDS touch screens must be connected to the respective targets"
- "When running the test on SabreLite boards using the headphone jack to
check the audio output, the audio manager needs to be configured to route it
accordingly as it defaults to the HDMI output:"
- $ pactl set-default-sink alsa_output.platform-sound.stereo-fallback
- $ pactl set-sink-port alsa_output.platform-sound.stereo-fallback analog-output-headphones
- "After reboot ensure that headphones will not be muted:"
- $ pactl set-sink-mute alsa_output.platform-sound.stereo-fallback false
expected:
- "This testcase tests that the volume control functionality works as expected and the user can increase or decrease the sound/volume levels"
run:
steps:
- "Add the Flathub repository (only needed on SDK images)"
- $ flatpak remote-add --user --no-sign-verify --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- "Install Rhythmbox from Flathub (only needed on SDK images)"
- $ flatpak install flathub org.gnome.Rhythmbox3
- "Open the Rhythmbox Music Application"
- $ flatpak run org.gnome.Rhythmbox3
- "Play and Pause any song"
- "Click on the speaker icon on the display and increase/decrease the volume control"
- "A volume level controller pops up and the sound/volume level can be controlled using this"
- "Ensure that a song is being played"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment