From Fedora Project Wiki

mNo edit summary
(Create How to test)
Line 1: Line 1:
{{autolang|base=yes}}
{{autolang|base=yes}}


{{Template:Associated_release_criterion|Final|user-switching}}
{{Template:Associated_release_criterion|Final|User-switching}}
{{Template:Associated_release_criterion|Beta|desktop-shutdown-reboot-logout}}


{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests whether the desktop log in, log out and shutdown operations work correctly.
|description=This test case tests whether '''user switching''' works correctly, i.e. it is possible, in case one user is logged in a system session, another user (or users) can log onto the system and use their own session in parallel with the first user without affecting the original session in any way.
 
'''User switching''' in this context '''does not''' represent switching between a desktop session and a virtual console, nor it represents using '''su''' or '''sudo''' commands to acquire different user identities on a terminal session.
 
 
|actions=
|actions=
# Do a default installation of the Fedora release you wish to test. Create two user accounts.
# Create a default installation of the Fedora release and flavor (Workstation, KDE) you wish to test.
# Clean boot the system, and note what accounts are listed on the login screen.
# Create two user accounts.
# Clean boot the system.
=== Scenario 1 ===
# Log in with the first user account.
# Log in with the first user account.
# Log out of the desktop.
# Check if the correct user has been logged in.
# Open one or more applications.
# Optionally open or create some content in them.
# Use the system menu to switch users ('''switch users''' usually is located along '''reboot''' and '''shutdown''' menu items)
# Log in with the second user account.
# Log in with the second user account.
# Log out.
# Open one or more applications and close them again.
# Try to log in with either account, intentionally entering the wrong password.
# Log out of the current session.
# Test alternative actions - such as shut down, suspend, and restart - instead of logging in, if they are offered in the release being tested.
# Log in with the first user account again.
# Log in with any account, and test all session management (log out, switch user, shut down, reboot, suspend etc.) activities offered by the desktop.
# Check that all applications are still running as they were before.
# Close them and log out.
 
=== Scenario 2 ===
# Log in with the first user account.
# Check if the correct user has been logged in.
# Open one or more applications.
# Optionally open or create some content in them.
# '''Lock the screen''' using the menu or the keyboard shortcut.
# Use '''switch user button''' to switch users.
# Log in with the second user account.
# Open one or more applications and close them again.
# Log out of the current session.
# Log in with the first user account again.
# Check that all applications are still running as they were before.
# Close them and log out.
 
=== Scenario 3 (optional) ===
# Log in with the first user account.
# Check if the correct user has been logged in.
# Open one or more applications.
# Optionally open or create some content in them.
# Use the system menu to switch users.
# Log in with the second user account.
# Open one or more applications.
# Switch between the two users several time and check the status of the sessions.
# Finally, log out of both accounts.
 
=== Scenario 4 (optional) ===
# Try switching more than two users.
 
|results=
|results=
# The login manager should display all regular user accounts, but not the root account, for selection.
# The login manager should display all regular user accounts, but not the root account, for selection.

Revision as of 09:05, 19 May 2020

Note.png
Associated release criterion
This test case is associated with the Fedora_40_Final_Release_Criteria#User-switching release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion. If so, please file a bug and nominate it as blocking the appropriate milestone, using the blocker bug nomination page.


Description

This test case tests whether user switching works correctly, i.e. it is possible, in case one user is logged in a system session, another user (or users) can log onto the system and use their own session in parallel with the first user without affecting the original session in any way.

User switching in this context does not represent switching between a desktop session and a virtual console, nor it represents using su or sudo commands to acquire different user identities on a terminal session.


How to test

  1. Create a default installation of the Fedora release and flavor (Workstation, KDE) you wish to test.
  2. Create two user accounts.
  3. Clean boot the system.

Scenario 1

  1. Log in with the first user account.
  2. Check if the correct user has been logged in.
  3. Open one or more applications.
  4. Optionally open or create some content in them.
  5. Use the system menu to switch users (switch users usually is located along reboot and shutdown menu items)
  6. Log in with the second user account.
  7. Open one or more applications and close them again.
  8. Log out of the current session.
  9. Log in with the first user account again.
  10. Check that all applications are still running as they were before.
  11. Close them and log out.

Scenario 2

  1. Log in with the first user account.
  2. Check if the correct user has been logged in.
  3. Open one or more applications.
  4. Optionally open or create some content in them.
  5. Lock the screen using the menu or the keyboard shortcut.
  6. Use switch user button to switch users.
  7. Log in with the second user account.
  8. Open one or more applications and close them again.
  9. Log out of the current session.
  10. Log in with the first user account again.
  11. Check that all applications are still running as they were before.
  12. Close them and log out.

Scenario 3 (optional)

  1. Log in with the first user account.
  2. Check if the correct user has been logged in.
  3. Open one or more applications.
  4. Optionally open or create some content in them.
  5. Use the system menu to switch users.
  6. Log in with the second user account.
  7. Open one or more applications.
  8. Switch between the two users several time and check the status of the sessions.
  9. Finally, log out of both accounts.

Scenario 4 (optional)

  1. Try switching more than two users.

Expected Results

  1. The login manager should display all regular user accounts, but not the root account, for selection.
  2. You should be able to log in with each configured user account and the correct password.
  3. You should be able to perform all session management activities offered by the desktop.
  4. Entering an incorrect password should show you a warning message and let you retry. After several unsuccessful attempts, it returns you to the account selection stage.
  5. The alternative actions (switch user, shut down, restart, suspend etc) should behave as expected.