Skip to content

Testing Methods

Shawn Clake edited this page Apr 4, 2017 · 17 revisions

Front to Back Testing Procedure

Testing Notes and Procedures

  1. Follow the steps in order.
  1. Only check a box if you are sure the test passed. If there are any concerns, unwanted side-effects, errors, warnings, or bugs, the checkbox should not be checked.

The following tests migrations and console

Fresh Install

  • Remove all users from the users table
  • Remove all entries in users_groups and user_groups
  • Run php artisan plugin:refresh clake.userextended
  • Check whether user_groups tbl has been seeded
  • Check whether fields tbl has been seeded

Artisan

  • Create an arbitrary plugin php artisan create:plugin test.tests
  • Test scaffolding php artisan create:uemodule test.tests Expected: Create's a templated Module.php file for the test.tests plugin

The following is preformed with empty UE tables to see if it breaks

Components

  • Test search results
  • Test profile pages
  • Test random user list

Backend

  • Test loading the Role Manager
  • Test editing a group
  • Test UserExtended Settings Page
  • Test loading the Fields Manager

The following is preformed to test filling UE tables for the first time

Components

  • Test registering a single user, logging in, updating their settings, and logging out
  • Does system log track events such as user login, logout, and account updates?
  • Test viewing their profile and leaving a comment on their own profile. Do relative timestamps work?
  • Try switching the User Template option to "Custom/Social" and view a profile to confirm templates work.

Backend

  • Test creating 1 role in RoleManager and assigning it to many different groups as well as editing it.
  • Test creating 1 additional group and editing it
  • Test creating a field with no validation
  • Test creating a field with all types of validation
  • Test creating 4 realistic fields: Address, Phone Number, Pin Code, Credit Card #

The following is preformed to test interactions between tables and different rows in tables

Components

  • Register an additional 3 users. Try logging in, logging out, and updating. Does the users table show the settings and properties correctly?
  • Do settings follow their validations and throw a correct error if they're wrong?
  • Do avatars show up on frontend pages or the default avatar if the user doesn't have an avatar?
  • Try visiting each users profile as other users. Try adding users as friends and then leaving comments on other users profiles. Are the timestamps correct?
  • Does system log track events such as freind requests, accepts, declines, and blocking a user?
  • Are relative timestamps working?
  • Try deleting friends
  • Try displaying user lists and friend requests

Backend

  • Create many roles
  • Try assigning users to groups and unassigning them from groups.
  • Assign the new roles to groups.
  • Assign users to those new roles and then remove users from the group. Does it break or are they removed from the role as well?
  • Test Drag and Drops for all 4 sections in the Role Manager
  • Test editing all 6 created fields. Change codes, descriptions, names, checkboxes, validations
  • Test deleting fields.

Status

UserExtended Core v2.1.00 - Testing Complete

  • Shawn Clake
  • Quinn Bast

UserExtended Core v2.0.00 - Testing Complete

  • Shawn Clake
  • Quinn Bast

Testing version 0.21