← Back to Portfolio

Test Cases

User Registration Module

Module:
User Registration
Feature:
Account Creation
Created By:
QA Engineer
Creation Date:
December 10, 2024
Total Test Cases:
12
Review Status:
Approved
TC_REG_001 - Valid User Registration High Priority
Objective:
Verify that a user can successfully register with valid credentials
Prerequisites:
  • Application is accessible
  • Registration page is loaded
  • Database is running and accessible
Test Data:
  • First Name: John
  • Last Name: Doe
  • Email: john.doe@example.com
  • Password: SecurePass123!
  • Confirm Password: SecurePass123!
Test Steps:
Step Action Expected Result
1 Navigate to the registration page Registration form is displayed with all required fields
2 Enter valid first name "John" First name field accepts the input
3 Enter valid last name "Doe" Last name field accepts the input
4 Enter valid email "john.doe@example.com" Email field accepts the input and validates format
5 Enter valid password "SecurePass123!" Password field accepts input and shows strength indicator
6 Enter matching password in confirm field Confirm password field accepts input
7 Accept terms and conditions Checkbox is checked successfully
8 Click "Register" button User account is created, success message displayed, user redirected to dashboard
TC_REG_002 - Invalid Email Format High Priority
Objective:
Verify that registration fails with invalid email format
Test Data:
  • Email: invalid-email-format
Test Steps:
Step Action Expected Result
1 Navigate to registration page Registration form is displayed
2 Fill all fields with valid data except email All fields accept valid input
3 Enter invalid email "invalid-email-format" Email field accepts the input
4 Click "Register" button Error message "Please enter a valid email address" is displayed
TC_REG_003 - Duplicate Email Registration High Priority
Objective:
Verify that registration fails when using an already registered email
Prerequisites:
  • User with email "existing@example.com" already exists in database
Test Data:
  • Email: existing@example.com
Test Steps:
Step Action Expected Result
1 Navigate to registration page Registration form is displayed
2 Fill all fields with valid data All fields accept input
3 Enter existing email "existing@example.com" Email field accepts the input
4 Click "Register" button Error message "Email already registered. Please use a different email" is displayed
TC_REG_004 - Password Mismatch Medium Priority
Objective:
Verify that registration fails when password and confirm password do not match
Test Data:
  • Password: SecurePass123!
  • Confirm Password: DifferentPass456@
Test Steps:
Step Action Expected Result
1 Navigate to registration page Registration form is displayed
2 Fill all fields with valid data except password confirmation All fields accept input
3 Enter password "SecurePass123!" Password field accepts input
4 Enter different password "DifferentPass456@" in confirm field Confirm password field accepts input
5 Click "Register" button Error message "Passwords do not match" is displayed
TC_REG_005 - Weak Password Validation Medium Priority
Objective:
Verify that weak passwords are rejected during registration
Test Data:
  • Weak Password: 123
Test Steps:
Step Action Expected Result
1 Navigate to registration page Registration form is displayed
2 Fill all fields with valid data except password All fields accept input
3 Enter weak password "123" Password strength indicator shows "Weak"
4 Click "Register" button Error message "Password must be at least 8 characters with uppercase, lowercase, number and special character" is displayed
TC_REG_006 - Required Field Validation Medium Priority
Objective:
Verify that all required fields are validated on form submission
Test Steps:
Step Action Expected Result
1 Navigate to registration page Registration form is displayed
2 Leave all fields empty Fields remain empty
3 Click "Register" button Validation errors displayed for all required fields (First Name, Last Name, Email, Password)
4 Fill only first name field First name field accepts input
5 Click "Register" button Validation errors displayed for remaining required fields

Test Case Summary

Total Test Cases:
6
High Priority:
3
Medium Priority:
3
Coverage Areas:
5