Admin CRM — Profile Test Cases

A. Document controlA. Kiểm soát tài liệu

Doc IDCPG-TC-CPG-CRM_Profile_TestCases
VersionPhiên bản1.0
StatusTrạng tháiDraft
OwnerCPG BA / Architecture
AudienceĐối tượngQA, Product, Backend, Frontend
ClassificationPhân loạiInternal
Effective dateNgày hiệu lực01/12/2026
Related docs CRM Profile UC · CRM Profile FSD · 02A CRM Profile

B. Version historyB. Lịch sử phiên bản

Version Date Author ChangesThay đổi
1.0 01/12/2026 Khoa Trinh Version 1.0

C. Table of contentsC. Mục lục

D. ContentD. Nội dung

Index

Test ID Test name BR UC Category
PRF-01 View profile information 3.1.1 UC-PRF-01 Function
PRF-02 Update first & last name 3.1.1 UC-PRF-01 Function
PRF-03 Update phone number 3.1.1 UC-PRF-01 Function
PRF-04 Upload valid avatar 3.1.1 UC-PRF-02 Function
PRF-05 Upload invalid avatar format 3.1.1 UC-PRF-02 Validation
PRF-06 Upload avatar exceeding size 3.1.1 UC-PRF-02 Validation
PRF-07 Read-only system fields 3.1.1 UC-PRF-01 Security
NOT-01 View notification list 3.1.2 UC-PRF-03 Function
NOT-02 Unread notification indicator 3.1.2 UC-PRF-03 Function
NOT-03 Mark notification as read 3.1.2 UC-PRF-04 Function
NOT-04 Delete notification 3.1.2 UC-PRF-04 Function
NOT-05 Mark all as read 3.1.2 UC-PRF-04 Function
NOT-06 Pagination works 3.1.2 UC-PRF-03 NFR
SEC-01 Change password (valid) 3.1.3 UC-PRF-05 Function
SEC-02 Wrong current password 3.1.3 UC-PRF-05 Function
SEC-03 Weak new password 3.1.3 UC-PRF-05 Validation
SEC-04 Password mismatch 3.1.3 UC-PRF-05 Validation
SEC-05 Re-use password 3.1.3 UC-PRF-05 Function
2FA-01 View 2FA setup 3.1.4 UC-PRF-06 Security
2FA-02 Enable 2FA via QR 3.1.4 UC-PRF-06 Security
2FA-03 Enable 2FA via manual key 3.1.4 UC-PRF-06 Security
2FA-04 Invalid OTP 3.1.4 UC-PRF-06 Security
2FA-05 Cancel 2FA setup 3.1.4 UC-PRF-06 Security
2FA-06 Disable 2FA 3.1.4 UC-PRF-06 Security
PC-01 Create Phishing Code 3.1.1 UC-PRF-01 Function
PC-02 Update Phishing Code 3.1.1 UC-PRF-01 Function
PC-03 Delete Phishing Code 3.1.1 UC-PRF-01 Function
SES-01 View current session 3.1.5 UC-PRF-07 Function
SES-02 Sign out other sessions 3.1.5 UC-PRF-07 Function
SES-03 Current session remains 3.1.5 UC-PRF-07 Function

Test cases

PRF-01

Field Value
Test ID PRF-01
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-PRF-01
Test name View profile information
Preconditions User is logged in
Data —
Steps Open My Profile -> Profile tab
Expected result Profile details are displayed correctly

PRF-02

Field Value
Test ID PRF-02
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-PRF-01
Test name Update first & last name
Preconditions User logged in
Data —
Steps Edit First Name and Last Name -> Save
Expected result Updated name is saved and shown

PRF-03

Field Value
Test ID PRF-03
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-PRF-01
Test name Update phone number
Preconditions User logged in
Data —
Steps Change phone number -> Save
Expected result Phone number updated successfully

PRF-04

Field Value
Test ID PRF-04
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-PRF-02
Test name Upload valid avatar
Preconditions JPG/PNG < 2MB
Data —
Steps Upload avatar -> Save
Expected result Avatar updated successfully

PRF-05

Field Value
Test ID PRF-05
Business Requirement ID 3.1.1
Category Validation
Use Case ID UC-PRF-02
Test name Upload invalid avatar format
Preconditions Invalid file type
Data —
Steps Upload unsupported file
Expected result Can not choose unsupported file

PRF-06

Field Value
Test ID PRF-06
Business Requirement ID 3.1.1
Category Validation
Use Case ID UC-PRF-02
Test name Upload avatar exceeding size
Preconditions File > 2MB
Data —
Steps Upload large file
Expected result Upload rejected with warning

PRF-07

Field Value
Test ID PRF-07
Business Requirement ID 3.1.1
Category Security
Use Case ID UC-PRF-01
Test name Read-only system fields
Preconditions User logged in
Data —
Steps Attempt edit Role / Group
Expected result Fields are not editable

NOT-01

Field Value
Test ID NOT-01
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-PRF-03
Test name View notification list
Preconditions User logged in
Data —
Steps Open Notifications tab
Expected result Notifications list displayed

NOT-02

Field Value
Test ID NOT-02
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-PRF-03
Test name Unread notification indicator
Preconditions Unread notifications exist
Data —
Steps View notification list
Expected result Unread indicator shown

NOT-03

Field Value
Test ID NOT-03
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-PRF-04
Test name Mark notification as read
Preconditions Unread notification
Data —
Steps Click "Mark as Read"
Expected result Status changes to Read

NOT-04

Field Value
Test ID NOT-04
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-PRF-04
Test name Delete notification
Preconditions Any notification exists
Data —
Steps Click Delete icon
Expected result Notification removed

NOT-05

Field Value
Test ID NOT-05
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-PRF-04
Test name Mark all as read
Preconditions Multiple unread notifications
Data —
Steps Click "Mark All as Read"
Expected result All notifications marked read

NOT-06

Field Value
Test ID NOT-06
Business Requirement ID 3.1.2
Category NFR
Use Case ID UC-PRF-03
Test name Pagination works
Preconditions >1 page notifications
Data —
Steps Click Next/Previous
Expected result Correct page loaded

SEC-01

Field Value
Test ID SEC-01
Business Requirement ID 3.1.3
Category Function
Use Case ID UC-PRF-05
Test name Change password (valid)
Preconditions User logged in
Data —
Steps Enter correct current password + valid new password
Expected result Password updated

SEC-02

Field Value
Test ID SEC-02
Business Requirement ID 3.1.3
Category Function
Use Case ID UC-PRF-05
Test name Wrong current password
Preconditions User logged in
Data —
Steps Enter incorrect current password
Expected result Error displayed

SEC-03

Field Value
Test ID SEC-03
Business Requirement ID 3.1.3
Category Validation
Use Case ID UC-PRF-05
Test name Weak new password
Preconditions User logged in
Data pwd=123456
Steps Enter weak password
Expected result Validation error shown

SEC-04

Field Value
Test ID SEC-04
Business Requirement ID 3.1.3
Category Validation
Use Case ID UC-PRF-05
Test name Password mismatch
Preconditions User logged in
Data —
Steps New password != Confirm password
Expected result Error displayed

SEC-05

Field Value
Test ID SEC-05
Business Requirement ID 3.1.3
Category Function
Use Case ID UC-PRF-05
Test name Re-use password
Preconditions User logged in
Data —
Steps New password = Current password
Expected result Error displayed

2FA-01

Field Value
Test ID 2FA-01
Business Requirement ID 3.1.4
Category Security
Use Case ID UC-PRF-06
Test name View 2FA setup
Preconditions 2FA disabled
Data —
Steps Open Security tab
Expected result QR code & manual key displayed

2FA-02

Field Value
Test ID 2FA-02
Business Requirement ID 3.1.4
Category Security
Use Case ID UC-PRF-06
Test name Enable 2FA via QR
Preconditions Authenticator app ready
Data —
Steps Scan QR -> Enter OTP -> Verify
Expected result 2FA enabled successfully

2FA-03

Field Value
Test ID 2FA-03
Business Requirement ID 3.1.4
Category Security
Use Case ID UC-PRF-06
Test name Enable 2FA via manual key
Preconditions Authenticator app ready
Data —
Steps Enter key manually -> Verify OTP
Expected result 2FA enabled

2FA-04

Field Value
Test ID 2FA-04
Business Requirement ID 3.1.4
Category Security
Use Case ID UC-PRF-06
Test name Invalid OTP
Preconditions 2FA setup active
Data —
Steps Enter incorrect OTP
Expected result Verification fails

2FA-05

Field Value
Test ID 2FA-05
Business Requirement ID 3.1.4
Category Security
Use Case ID UC-PRF-06
Test name Cancel 2FA setup
Preconditions During setup
Data —
Steps Click Cancel
Expected result 2FA not enabled

2FA-06

Field Value
Test ID 2FA-06
Business Requirement ID 3.1.4
Category Security
Use Case ID UC-PRF-06
Test name Disable 2FA
Preconditions 2FA enabled
Data —
Steps Click Disable 2FA
Expected result 2FA was disabled

PC-01

Field Value
Test ID PC-01
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-PRF-01
Test name Create Phishing Code
Preconditions Phishing Code was not set
Data —
Steps Input Phishing Code -> Save Code
Expected result Phishing code was set

PC-02

Field Value
Test ID PC-02
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-PRF-01
Test name Update Phishing Code
Preconditions Phishing Code was set
Data —
Steps Input New Phishing Code -> Save Code
Expected result Phishing code was updated

PC-03

Field Value
Test ID PC-03
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-PRF-01
Test name Delete Phishing Code
Preconditions Phishing Code was set
Data —
Steps Click Delete Code
Expected result Phishing code was removed

SES-01

Field Value
Test ID SES-01
Business Requirement ID 3.1.5
Category Function
Use Case ID UC-PRF-07
Test name View current session
Preconditions User logged in
Data —
Steps Open Security tab
Expected result Current session shown

SES-02

Field Value
Test ID SES-02
Business Requirement ID 3.1.5
Category Function
Use Case ID UC-PRF-07
Test name Sign out other sessions
Preconditions Multiple sessions exist
Data —
Steps Click "Sign Out All Other Sessions"
Expected result Other sessions terminated

SES-03

Field Value
Test ID SES-03
Business Requirement ID 3.1.5
Category Function
Use Case ID UC-PRF-07
Test name Current session remains
Preconditions After sign-out
Data —
Steps Check active session
Expected result Current session remains active

E. ReferencesE. Tham chiếu