User Management - QA Test Plan


On this page

Test 0.1: Check that the Administrator user is properly displayed

  • Actions:
    1. Login with full privileges
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
  • Expected:
    • The Administrator user should be displayed on the list to the left
  • Actions:
    1. Click the Administrator user
  • Expected:
    • The edit user form should be displayed
    • The email address should be: admin@core.collectionspace.org
    • Both the Email Address and Full Name fields should be read-only
    • Full name should be Administrator
    • The TENANT_ADMINISTRATOR role should be marked

Test 0.2: Check that the Reader user is properly displayed

  • Actions:
    1. Login with full privileges
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
  • Expected:
    • The Reader user should be displayed on the list to the left
  • Actions:
    1. Click the Reader user
  • Expected:
    • The edit user form should be displayed
    • The email address should be: reader@core.collectionspace.org
    • Both Email Address and Full Name fields should be read-only
    • Full name should be Reader
    • The TENANT_READER role should be marked

User Creation

Test 1: Missing values on user creation

  • Actions:
    1. Login with full privileges
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Click the + Create New button
    5. Variation 1: Fill out all fields but Email Address
    6. Variation 2: Fill out all fields but Full Name
    7. Variation 3: Fill out all fields but Password
    8. Variation 4: Fill out all fields but Confirm Password
    9. Variation 5: Fill out all fields but Full Name and Email Address
    10. Click Save
  • Expected:
    • Save is disabled or Error message: (Field name) is required. Please enter a value.
    • New user should not appear on list of users to the left

Test 3: Invalid email address on user creation

  • Actions:
    1. Continue from Test 1
    2. Make sure Full Name, Password, Confirm Password are valid
    3. Variation a: In Email address field, enter: false@mail
    4. Variation b: In Email address field, enter: falsemail
    5. Variation c: In Email address field, enter: falsemail.test
    6. Click Save
  • Expected:
    • Save is disabled
    • User should not appear on list of users to the left

Test 5: Non-matching Passwords on User Creation

  • Actions:
    1. Continue from Test 3
    2. Make sure Full Name, Email Address are valid
    3. Variation 1: Fill in Password, leave confirm password blank
    4. Variation 2: Fill in Password, fill in something different in confirm password
    5. Variation 3: Fill in Confirm Password, leave Password blank
    6. Click Save
  • Expected:
    • Save is disabled
    • User should not appear on list of users to the left

Test 7: Invalid Password Length on User Creation

  • Actions:
    1. Continue from Test 5
    2. Make sure Full Name, Email Address are valid
    3. Variation 1: Write test123 in Password
    4. Variation 2: Write test123456789012345678901 in Password
    5. Click Save
  • Expected:
    • Error message: Password must be between 8 and 24 characters.
    • Save is disabled
  • Actions:
    1. Variation 1: Fill out the Password and Confirm Password fields with test123
    2. Variation 2: Fill out the Password and Confirm Password fields with test123456789012345678901
    3. Click Save
  • Expected:
    • Save is disabled

Test 9: Reverting Changes During User Creation

  • Actions:
    1. Continue from Test 7
    2. Enter correctly formatted text in each of the fields in the User record
    3. Set Status to Inactive
    4. Click the box next to at least one role, in the list of Roles at right
    5. Click Revert 
  • Expected:
    • Any text you've entered is removed and all of the text fields in the User record are blank
    • The Status has reverted to Active
    • No boxes are checked in the list of Roles at right

Test 11: Successful User Creation

  • Actions:
    1. Login with full privileges
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Fill in valid Email Address, Full Name, Password, Confirm Password
    5. Let Status be active
    6. Select at least one role for the user
    7. Click Delete
  • Expected:
    • The Delete button should not be present
  • Actions:
    1. Click Save
  • Expected:
    • Save successful and user appears on list to the left
  • Actions:
    1. Click user on list to the left
  • Expected:
    • User data should appear in the user details box
    • All the data should be the same as entered earlier. Note: the Password and Confirm Password values will be hidden
    • The role should match the one you set
  • Actions:
    1. Click on the Sign out button in the top right
    2. Enter email and password of the newly created user
    3. Click the Sign in button
  • Expected:
    • Successful login, Search page displayed

User Editing

Test 15: Successful Edit of User

  • Actions:
    1. Login with full privileges
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Select the user you created in Test 13
  • Expected:
    • All fields but the User Id field in the User Details area should be active. The User Id field should be read-only
  • Actions:
    1. Change Email Address, Full Name fields
    2. Change the roles assigned to user
    3. Click the save button
  • Expected:
    • The old Full Name should not be on list of users
    • The new Full Name should be on list of users
    • The user details should contain the changed values
    • The newly selected roles should be selected

Test 17: Successful Deletion

  • Actions:
    1. Login with full privileges
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. If there are no users on the list that you are comfortable deleting, create a new user according to steps in Test 11
    5. Click Delete
  • Expected:
    • Confirmation dialog should appear
  • Actions:
    1. Variation 1: Click the Cancel button in the dialog
    2. Variation 2: Click the  close symbol in top right corner of the dialog
  • Expected:
    • User should still appear on list of users
    • User should still be selected and in edit mode
  • Actions:
    1. Click Delete and Delete again in dialog
  • Expected:
    • User should no longer appear on list of users
    • Text should appear that user was deleted successfully
    • The user details area should not display details for any user
  • Actions:
    1. Click the Sign Out button at the top right of the screen
    2. Fill in the username and password of the deleted user
  • Expected:
    • Error message: Sign in failed.

Test 19: Can user delete him/herself

  • Actions:
    1. Login with full privileges (do not use the default admin account, create a new account if you need to)
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Select the user you are logged in as, from the users list
  • Expected:
    • No Delete button should appear

Warnings

Test 21: Allow User to Leave Page on Empty Fields on User Creation

  • Actions:
    1. Login with full privileges (do not use the default admin account, create a new account if you need to)
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Click + Create New
    5. Click the Search tab in the top navigation
  • Expected:
    • Taken to Search page, no warning message received

Test 23: Warn When Leaving Page After Unsaved Changes

  • Actions:
    1. Login with full privileges (do not use the default admin account, create a new account if you need to)
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Variation 1: Click + Create New, fill out at least one field, and tab or click out of that field
    5. Variation 2: Edit Existing user, change one field value, and tab or click out of that field
    6. Variation 3: Edit Existing user, change one or more roles
    7. Click anything that will remove you from the view of user you are editing (eg. Search menu, + Create New button, Another username from list, etc)
  • Expected:
    • Confirmation dialog warning of unsaved changes

Test 25: Cancel Functionality of Leave Confirmation Dialog on Unsaved Changes

  • Actions:
    1. Continue from Test 23 with confirmation dialog open
    2. Variation 1: Click the Cancel button
    3. Variation 2: Click the close symbol at the top right of the dialog
  • Expected:
    • Dialog disappear
    • User details should still be filled out

Test 27: Save Functionality of Leave Confirmation Dialog on Unsaved Changes

  • Actions:
    1. Continue from Test 35 
    2. Fill in valid Email Address, Full Name, Password, Confirm Password
    3. Click anything that will remove you from the view of user you are editing (eg. Search menu, + Create New button, Another username from list, etc)
    4. In the leave confirmation dialog, click Save and continue
  • Expected
    • You should be taken to the item/link you clicked
  • Actions:
    1. Go back to Administration > Users tab if you left
    2. Click on the user
  • Expected:
    • New user should be on list
    • The user should contain the new or edited user details you entered

Test 29: Revert Functionality of Leave Confirmation Dialog on Unsaved Changes

  • Actions:
    1. Login with full privileges (do not use the default admin account, create a new account if you need to)
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Click + Create New
    5. Fill in valid Email Address, Full Name, Password, Confirm Password
    6. Click Search menu in top navigation
    7. Click Revert and continue
  • Expected:
    • Dialog should disappear
  • Actions:
    1. Return to the Administration > Users tab
  • Expected:
    • New user should not be on list

Activation and Deactivation

Test 31: Deactivation of User

  • Actions:
    1. Login with full privileges (do not use the default admin account, create a new account if you need to)
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Click a user you can edit from the list to the left
      1. Make sure you know the password for the user, create a new one if not
    5. Select Inactive from the Status drop-down at the bottom of the user details screen
    6. Click Save
  • Expected:
    • A successful saved message should appear
    • Status should be inactive on user list to the left
  • Actions:
    1. Click the Sign out link at the top right corner of the screen
    2. Attempt to login using deactivated user
  • Expected:
    • Error message: Sign in failed. Incorrect username/password

Test 43: Activation of User

  • Actions:
    1. Login with full privileges (do not use the default admin account, create a new account if you need to)
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Select an inactive user on the list to the left
      1. If no user is currently inactive, follow the deactivation of user test above
    5. Select active from the Status drop-down to the right
    6. Click Save
  • Expected:
    • A successfully saved message should appear
    • Status should be active on the user list to the left
  • Actions:
    1. Click the Sign out link at the top right corner of screen
    2. Attempt to login using activated user
  • Expected:
    • Successful login, Search page displayed

Test 45: User Cannot Deactivate Him/Herself

  • Actions:
    1. Login with full privileges (do not use the default admin account, create a new account if you need to)
    2. Go to the Administration menu in the top navigation
    3. Go to the Users tab
    4. Click on the user you logged in as on the list to the left
  • Expected:
    • The status select-box should be disabled
    • The delete button should be disabled
Search area
Test 51: Search area prerequisite
  • Actions:
    1. login as administrative user
    2. go to collectionspace/ui/html/administration.html
    3. click + User (Create New User)
    4. In Email Address type: mailman@testmail.com
    5. In Full Name type: The Big Lebowski
    6. In Password type: secretpass
    7. In Confirm Password type: secretpass
    8. Let status be active
    9. click Save
Test 53: Successful user search
  • Actions:
    1. If you haven't already, follow the steps in Test 51: Search area prerequisite (should only be done once)
    2. go to the user administration
    3. Variation 1: enter Big in the find area (test full word)
    4. Variation 2: enter big in the find area (test case sensitivity)
    5. Variation 3: enter big lebowski in the find area (test multiple words)
    6. Variation 4: enter bi in the find area (test partial match)
    7. Variation 5: enter the lebowski in the find area (test separate words)
    8. Variation 6: enter big le in the find area (test fragments)
    9. Variation 7: enter in the find area
    10. click find user
  • Expected
    • The user The Big Lebowski should appear on list of users
Test 55: Show All users button
  • Actions:
    1. Continue from Test 53 (or login as administrative user, go to user administration pages)
    2. enter snth in the find area
  • Expected:
    • The user The Big Lebowski should not appear on list of users
    • The Show all users button should be visible
  • Actions:
    1. Click the Show all users button
  • Expected:
    • All users should be shown (including The Big Lebowski)
    • Show all users button should disappear