Skip to content

Latest commit

 

History

History
100 lines (77 loc) · 4.29 KB

t001.md

File metadata and controls

100 lines (77 loc) · 4.29 KB

T001 authentication with username and password

Abstract:
This documents contains the definitions for tests that target the feature 'authentication with username and password'.

T001-01: login accepted for valid account (username + password)

description:
This test focuses on checking that it is possible to successful login with a valid user account.

workflow:

  1. open the login page
  2. enter a valid username and the corresponding password
  3. click the login button

expected results:
the login is successful and the MainMenu page opens (check A)

T001-02: login denied for invalid account (valid username and invalid password)

description:
This test focuses on checking that the system refuses to login a user with an invalid user account (valid username and invalid password) workflow:

  1. open the login page
  2. enter a valid username and an invalid password
  3. click the login button

expected results:
the login is denied and the error message Your User Name and Password combination could not be found. is shown on the login page (check A)

T001-03: login denied for invalid account (invalid username and valid password)

description:
This test focuses on checking that the system refuses to login a user with an invalid user account (invalid username and valid password)

workflow:

  1. open the login page
  2. enter an invalid username and password
  3. click the login button

expected results:
the login is denied and the error message Your User Name and Password combination could not be found. is shown on the login page (check A)

T001-04: login denied for invalid account (invalid username and invalid password)

description:
This test focuses on checking that the system refuses to login a user with an invalid user account (invalid username and password)

workflow:

  1. open the login page
  2. enter an invalid username and password
  3. click the login button

expected results:
the login is denied and the error message Your User Name and Password combination could not be found. is shown on the login page (check A)

T001-05: login denied for locked account (valid username and password)

description:
This test focuses on checking that the system refuses to login a user with an locked user account (invalid username and password)

prerequisites:
• the test is executed with an user account that is already locked

workflow:

  1. open the login page
  2. enter the username and password of the locked user
  3. click the login button

expected results:
the login is denied and the error message Your User Name and Password combination has been Locked. is shown on the login page (check A)

T001-06: change password required at first login (either new account or after password reset)

description:
This test focuses on checking that the system forces a user to change its temporary password. The test can be executed in different variations:

  • with a new user account (one that was never before used for login)
  • with a user account that was currently unlocked (after it was locked before)
  • with a user account for whom an administrator has reset the password

prerequisites:
All of the variations should be equivalent since it is assumed that the user account state is the same for all variations (a user account with a temporary password). Therefore each of the methods can be used to assign a temporary password to the test user

workflow:

  1. open the login page
  2. enter the username and password of the user with the temporary password
  3. click the login button

expected results:
the login is successful and the Reset Password page opens (check A)

T001-07: account lockout after failed attempts

description:
This test focuses on checking that the system locks the user account after the number of failed attempts has been succeeded.

prerequisites:
The lockout should be enabled.

workflow:

  1. open the login page
  2. enter the username of the user with an incorrect password
  3. click the login button
  4. repeat steps 2 and 3 for the maximum number of failed attempts

expected results:
The following message should appear: "Your User Name and Password combination has been Locked. Please contact your OpenClinica Administrator to have them unlock your account." (check A)