Admin CRM — Setting General Test Cases

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

Doc IDCPG-TC-CPG-CRM_Setting_General_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 Setting General UC · CRM Setting General FSD

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
GS-01 Access General Settings with Admin role 3.1.1 UC-SG-01 Function
GS-02 Access General Settings with non-admin role 3.1.1 UC-SG-01 Security
GS-03 View list of merchant tiers 3.1.1 UC-SG-01 Function
GS-04 Search merchant tier by name 3.1.1 UC-SG-01 Function
GS-05 Create new merchant tier with valid data 3.1.1 UC-SG-01 Function
GS-06 Create tier with missing mandatory fields 3.1.1 UC-SG-01 Validation
GS-07 Edit existing merchant tier 3.1.1 UC-SG-01 Function
GS-08 Delete merchant tier 3.1.1 UC-SG-01 Function
GS-09 Delete tier assigned to merchants 3.1.1 UC-SG-01 Function
GS-10 Approve pending merchant tier 3.1.1 UC-SG-02 Function
GS-11 Reject merchant tier with reason 3.1.1 UC-SG-03 Function
GS-12 Validate rate limit numeric constraints 3.1.1 UC-SG-01 Validation
GS-13 View merchant business types 3.1.2 UC-SG-04 Function
GS-14 Create new business type 3.1.2 UC-SG-04 Function
GS-15 Edit business type name/description 3.1.2 UC-SG-04 Function
GS-16 Delete unused business type 3.1.2 UC-SG-04 Function
GS-17 View document types Document Types UC-SG-06 Function
GS-18 Create new document type Document Types UC-SG-06 Function
GS-19 Edit document type Document Types UC-SG-06 Function
GS-20 Delete document types with no document Document Types UC-SG-06 Function
GS-21 Delete document types with documents Document Types UC-SG-06 Function
GS-22 View support ticket categories 3.1.3 UC-SG-05 Function
GS-23 Create new ticket category 3.1.3 UC-SG-05 Function
GS-24 Edit ticket category 3.1.3 UC-SG-05 Function
GS-25 Delete category with tickets 3.1.3 UC-SG-05 Function
GS-26 View employee positions 3.1.4 UC-SG-07 Function
GS-27 Create new employee position 3.1.4 UC-SG-07 Function
GS-28 Edit employee position 3.1.4 UC-SG-07 Function
GS-29 Delete position assigned to employees 3.1.4 UC-SG-07 Function
GS-30 View departments list 3.1.5 UC-SG-08 Function
GS-31 Create new department 3.1.5 UC-SG-08 Function
GS-32 Edit department details 3.1.5 UC-SG-08 Function
GS-33 Delete department with employees 3.1.5 UC-SG-08 Function

Test cases

GS-01

Field Value
Test ID GS-01
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-01
Test name Access General Settings with Admin role
Preconditions Admin user logged in
Data —
Steps Navigate to Settings -> General
Expected result General Settings page loads successfully

GS-02

Field Value
Test ID GS-02
Business Requirement ID 3.1.1
Category Security
Use Case ID UC-SG-01
Test name Access General Settings with non-admin role
Preconditions Non-admin user logged in
Data —
Steps Navigate to Settings General URL
Expected result Access denied or navigate back to home page

GS-03

Field Value
Test ID GS-03
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-01
Test name View list of merchant tiers
Preconditions At least one tier exists
Data —
Steps Open Merchant Tiers tab
Expected result All tiers displayed with correct data

GS-04

Field Value
Test ID GS-04
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-01
Test name Search merchant tier by name
Preconditions Tiers available
Data —
Steps Enter tier name in search box
Expected result Matching tier(s) returned

GS-05

Field Value
Test ID GS-05
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-01
Test name Create new merchant tier with valid data
Preconditions Admin logged in
Data —
Steps Click Add Tier -> Fill all mandatory fields -> Save
Expected result Tier created with Draft or Pending status

GS-06

Field Value
Test ID GS-06
Business Requirement ID 3.1.1
Category Validation
Use Case ID UC-SG-01
Test name Create tier with missing mandatory fields
Preconditions Admin logged in
Data —
Steps Leave required field empty -> Save
Expected result Validation error displayed

GS-07

Field Value
Test ID GS-07
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-01
Test name Edit existing merchant tier
Preconditions Existing tier available, tier status = draft/reject
Data —
Steps Click Edit -> Modify values -> Save
Expected result Changes saved successfully

GS-08

Field Value
Test ID GS-08
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-01
Test name Delete merchant tier
Preconditions Tier not assigned to merchants, tier status = draft
Data —
Steps Click Delete -> Confirm
Expected result Tier deleted successfully

GS-09

Field Value
Test ID GS-09
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-01
Test name Delete tier assigned to merchants
Preconditions Tier linked to merchants
Data —
Steps Click Delete
Expected result Deletion blocked with warning message

GS-10

Field Value
Test ID GS-10
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-02
Test name Approve pending merchant tier
Preconditions Tier in Pending status, User has Approve permission
Data —
Steps Click Approve
Expected result Tier status updated to Approved

GS-11

Field Value
Test ID GS-11
Business Requirement ID 3.1.1
Category Function
Use Case ID UC-SG-03
Test name Reject merchant tier with reason
Preconditions Tier in Pending status, User has Approve permission
Data —
Steps Click Reject -> Enter reason
Expected result Tier rejected and reason stored

GS-12

Field Value
Test ID GS-12
Business Requirement ID 3.1.1
Category Validation
Use Case ID UC-SG-01
Test name Validate rate limit numeric constraints
Preconditions Admin editing tier
Data —
Steps Enter negative or invalid values
Expected result Validation error shown

GS-13

Field Value
Test ID GS-13
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-SG-04
Test name View merchant business types
Preconditions Business types exist
Data —
Steps Open Business Types tab
Expected result All business types displayed

GS-14

Field Value
Test ID GS-14
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-SG-04
Test name Create new business type
Preconditions Admin logged in
Data —
Steps Click Add Business Type -> Save
Expected result Business type created successfully

GS-15

Field Value
Test ID GS-15
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-SG-04
Test name Edit business type name/description
Preconditions Business type exists
Data —
Steps Edit -> Save
Expected result Updated values saved

GS-16

Field Value
Test ID GS-16
Business Requirement ID 3.1.2
Category Function
Use Case ID UC-SG-04
Test name Delete unused business type
Preconditions No merchants linked
Data —
Steps Click Delete
Expected result Business type removed

GS-17

Field Value
Test ID GS-17
Business Requirement ID Document Types
Category Function
Use Case ID UC-SG-06
Test name View document types
Preconditions Categories exist
Data —
Steps Open Ticket Categories tab
Expected result Types displayed with docs count

GS-18

Field Value
Test ID GS-18
Business Requirement ID Document Types
Category Function
Use Case ID UC-SG-06
Test name Create new document type
Preconditions Admin logged in
Data —
Steps Click Add Category -> Save
Expected result Type created successfully

GS-19

Field Value
Test ID GS-19
Business Requirement ID Document Types
Category Function
Use Case ID UC-SG-06
Test name Edit document type
Preconditions Type exists
Data —
Steps Edit -> Save
Expected result Type updated

GS-20

Field Value
Test ID GS-20
Business Requirement ID Document Types
Category Function
Use Case ID UC-SG-06
Test name Delete document types with no document
Preconditions Type has no document
Data —
Steps Click Delete
Expected result Type deleted successfully

GS-21

Field Value
Test ID GS-21
Business Requirement ID Document Types
Category Function
Use Case ID UC-SG-06
Test name Delete document types with documents
Preconditions Type has docs
Data —
Steps Click Delete
Expected result Deletion blocked with warning

GS-22

Field Value
Test ID GS-22
Business Requirement ID 3.1.3
Category Function
Use Case ID UC-SG-05
Test name View support ticket categories
Preconditions Categories exist
Data —
Steps Open Ticket Categories tab
Expected result Categories displayed with ticket count

GS-23

Field Value
Test ID GS-23
Business Requirement ID 3.1.3
Category Function
Use Case ID UC-SG-05
Test name Create new ticket category
Preconditions Admin logged in
Data —
Steps Click Add Category -> Save
Expected result Category created successfully

GS-24

Field Value
Test ID GS-24
Business Requirement ID 3.1.3
Category Function
Use Case ID UC-SG-05
Test name Edit ticket category
Preconditions Category exists
Data —
Steps Edit -> Save
Expected result Category updated

GS-25

Field Value
Test ID GS-25
Business Requirement ID 3.1.3
Category Function
Use Case ID UC-SG-05
Test name Delete category with tickets
Preconditions Category has tickets
Data —
Steps Click Delete
Expected result Deletion blocked with warning

GS-26

Field Value
Test ID GS-26
Business Requirement ID 3.1.4
Category Function
Use Case ID UC-SG-07
Test name View employee positions
Preconditions Positions exist
Data —
Steps Open Employee Positions tab
Expected result Positions displayed with employee count

GS-27

Field Value
Test ID GS-27
Business Requirement ID 3.1.4
Category Function
Use Case ID UC-SG-07
Test name Create new employee position
Preconditions Admin logged in
Data —
Steps Click Add Position -> Save
Expected result Position created

GS-28

Field Value
Test ID GS-28
Business Requirement ID 3.1.4
Category Function
Use Case ID UC-SG-07
Test name Edit employee position
Preconditions Position exists
Data —
Steps Edit -> Save
Expected result Position updated

GS-29

Field Value
Test ID GS-29
Business Requirement ID 3.1.4
Category Function
Use Case ID UC-SG-07
Test name Delete position assigned to employees
Preconditions Employees assigned
Data —
Steps Click Delete
Expected result Deletion blocked

GS-30

Field Value
Test ID GS-30
Business Requirement ID 3.1.5
Category Function
Use Case ID UC-SG-08
Test name View departments list
Preconditions Departments exist
Data —
Steps Open Departments tab
Expected result Departments displayed correctly

GS-31

Field Value
Test ID GS-31
Business Requirement ID 3.1.5
Category Function
Use Case ID UC-SG-08
Test name Create new department
Preconditions Admin logged in
Data —
Steps Click Add Department -> Save
Expected result Department created

GS-32

Field Value
Test ID GS-32
Business Requirement ID 3.1.5
Category Function
Use Case ID UC-SG-08
Test name Edit department details
Preconditions Department exists
Data —
Steps Edit -> Save
Expected result Department updated

GS-33

Field Value
Test ID GS-33
Business Requirement ID 3.1.5
Category Function
Use Case ID UC-SG-08
Test name Delete department with employees
Preconditions Employees assigned
Data —
Steps Click Delete
Expected result Deletion prevented with message

E. ReferencesE. Tham chiếu