From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This test case ensures that the `bamf` and `bamf-daemon` effectively match and manage application windows. |setup= 1. Ensure you have a Fedora system. 2. Install the `bamf` and `bamf-daemon` packages: `sudo dnf install bamf bamf-daemon`. 3. Start the `bamf-daemon`: `systemctl --user start bamfdaemon.service`. |actions= # Open a terminal. # Ensure the daemon is running: `sudo systemctl status bamf-daemon`. # Launch multiple applications (e.g.,...") |
No edit summary |
||
Line 2: | Line 2: | ||
|description=This test case ensures that the `bamf` and `bamf-daemon` effectively match and manage application windows. | |description=This test case ensures that the `bamf` and `bamf-daemon` effectively match and manage application windows. | ||
|setup= | |setup= | ||
# Ensure you have a Fedora system. | |||
# Install the `bamf` and `bamf-daemon` packages: `sudo dnf install bamf bamf-daemon`. | |||
# Start the `bamf-daemon`: `systemctl --user start bamfdaemon.service`. | |||
|actions= | |actions= | ||
# Open a terminal. | # Open a terminal. | ||
Line 20: | Line 20: | ||
# Closing and launching applications should be accurately reflected when querying with `bamf-matcher`. | # Closing and launching applications should be accurately reflected when querying with `bamf-matcher`. | ||
|optional=For deeper testing: | |optional=For deeper testing: | ||
# Test `bamf` and `bamf-daemon` on multiple desktop environments (e.g., GNOME, KDE, XFCE). | |||
# Observe the behavior when rapidly switching, launching, and closing various applications. | |||
# Test the integration of `bamf` with application switchers or launchers. | |||
}} | }} | ||
[[Category:Package_bamf_test_cases]] | [[Category:Package_bamf_test_cases]] | ||
[[Category:Critical_path_test_cases]] | [[Category:Critical_path_test_cases]] |
Latest revision as of 19:01, 12 August 2023
Description
This test case ensures that the bamf
and bamf-daemon
effectively match and manage application windows.
Setup
- Ensure you have a Fedora system.
- Install the
bamf
andbamf-daemon
packages:sudo dnf install bamf bamf-daemon
. - Start the
bamf-daemon
:systemctl --user start bamfdaemon.service
.
How to test
- Open a terminal.
- Ensure the daemon is running:
sudo systemctl status bamf-daemon
. - Launch multiple applications (e.g., Firefox, Terminal, LibreOffice).
- List matched applications:
bamf-matcher --list-desktop-files
. - Check if the launched applications are listed.
- Use
bamf-matcher
to check for a specific application's state:bamf-matcher --for-window=<Window XID>
. (Replace<Window XID>
with the XID of an application window, which can be obtained using tools likexwininfo
). - Verify that it correctly identifies the state and type of the window.
- Intentionally close and launch various applications, and periodically check their state using
bamf-matcher
.
Expected Results
- The
bamf-daemon
should be active and running without any errors. - The
bamf-matcher --list-desktop-files
should list all opened applications. - The
bamf-matcher --for-window
should accurately represent the state and type of the specified window. - Closing and launching applications should be accurately reflected when querying with
bamf-matcher
.
Optional
For deeper testing:
- Test
bamf
andbamf-daemon
on multiple desktop environments (e.g., GNOME, KDE, XFCE). - Observe the behavior when rapidly switching, launching, and closing various applications.
- Test the integration of
bamf
with application switchers or launchers.