wiki:TestPlan/users

Test plan for users

Test cases

Number Description
CA10 Create user
CA11 Edit user
CA12 Delete user

Test cycles

CA10 Create user

For creating users you have to log in as admin and then you have to get into administration, particulary in the menu Users. Then you have to click Add user buttom. The fields that has an user are: Test cases

  • Username (required field): it's the username of the user. It must be unique. System will not allow us to create two users with the same username.
  • Password (required field): it's the password of the user. This field can contain letters and numbers.
  • Password twice (required field): it's the field where you confirm your password.

After completeing this fields and saving, it will appear more fields for completing the user profile. Test cases

  • CA10 - Cl01. Creating user form validation. Try to create a new user with no fields filled. It has to appear a message alerting you that the three fields at the beggining are obligatory. Then try it filling only one field, then two, ...
  • CA10 - Cl02. Creating user with different password and password confirmation. Check that the system tells you that two passwords must be identical.
  • CA10 - Cl03. Create user with a very long name. Create a user with a long name and see that it's possible. Check that a message os succesfully creation appears.
  • CA10 - Cl04. Create user breadcrumbs. Check that the breadcrumbs exists and it works. Breadcrumbs must be:
    • Empty in the creation template (username and two password fields)
    • Home › Auth › Users › Username in the admin profile view
  • CA10 - Cl05. Create user form buttons. Check that:
    • If you click "Save and add other" the system save the user you've just created and it also redirects you to the creation form.
    • If you click "Save" the system save the user and returns you to the users list. (I have doubts)
    • If you click "Save and continue editing" the system save the user and it stays at the edit view of the user you've just created.
  • CA10 - Cl06. Top buttons of user admin view. Check that the buttons "View on site", "User children" (it doesn't have sense if there is no related content. Depends on #645), "History" works.

CA11 Edit user

When you create an user, system normally redirects you to the admin user view to complete the user profile. We also consider this editing. Test cases

  • CA11 - Cl01. Edit an user deleteing all the fields filled and check that obligatory fields validation works.
  • CA11 - Cl02. Edit filling all fields with sensible contents. Check that it works and that data is saved correctly.
  • CA11 - Cl03. Fields checking. Check that all the fields that are on the requirements appear.
  • CA11 - Cl04. Date validation. Check that date fields has the correct validation. (I have doubts here. I'll ask Lin)

CA12 Delete user

You can delete an user from the list or from the user view, but always from admin. When you try to delete an user, the system will ask you if you're sure, as a confirmation.

Test cases

  • CA12 - Cl01. Delete an user from user admin view. Create a test user, and then delete it from its view. Check that a message of user delete succesfully appears.
  • CA12 - Cl02. Delete an user from admin users list. Create a test user, and then, delete it from the users list (using the searcher and the select all). Check that a message of user delete succesfully appears.
  • CA12 - Cl03. Delete an user but finally don't do it. Create a test user, try to delete it (from list or from its view) and being in the confirmation screen, click cancel.
  • CA12 - Cl04. Check that the link of the deleteing confirmation points to the object and works. Create a test user, try to delete it (from list or from its view) and being in the confirmation screen, click on the link to the object and check it doesn't fail.
  • CA12 - Cl05. Delete view breadcrumbs. Check that the breadcrumbs exists and it's correct. Depends on #625