Skip to main content

Project Registration - Test Cases

Revision 1.0 (2026-01-14) - Complete manual test documentation

Overview

This section contains comprehensive manual test cases for the Project Registration Workflow feature. The tests cover all workflow paths including the standard path and the optional skip path.

Feature Documentation: Project Registration

Workflow Documentation: Project Registration Workflow


Test Summary

Test DocumentDescriptionTest Cases
Standard Workflow PathFull workflow: Work Owner → Purchasing → Contractor → ApprovalTC-PR-001 to TC-PR-003, TC-PR-005 to TC-PR-031
Optional Path - Skip PurchasingSkip Purchasing when project has PO No.TC-PR-032 to TC-PR-040

Total Test Cases: 39 (TC-PR-004 removed - Project Registration does not require project selection)


Prerequisites

Before running these tests, ensure:

  1. Backend server running on http://localhost:5000
  2. Frontend running on http://localhost:4200
  3. Test data available:
    • At least one project exists with PR.No assigned
    • At least one project with PO.No filled (for skip path tests)
    • At least one contractor configured with coordinator/supervisor

Test Accounts

RoleEmailPasswordAccess Level
Admintn@thaiscada.comTest1234*View all tasks
Purchasingsafety-purchasing@outlook.comTest1234*FillInPurchasingInfo state
Work Ownersafety-owner@outlook.comTest1234*Create, review, approve
Contractorsafety-contractor1-0@outlook.comTest1234*Acknowledge procedures

Create Task

เครื่องมือ (Tools) → สร้างงานใหม่ (Create Task) → การลงทะเบียนโครงการ (Project Registration)

View Tasks

งาน (Tasks) → รายการงาน (Task List)

Review Task

Click on task row → Task review page opens


Workflow States

State KeyThai NameEnglish NameExpected Role
fill-in-project-infoกรอกข้อมูลโครงการFill in project informationWork Owner
fill-in-purchasing-infoกรอกข้อมูลจัดซื้อFill in purchasing informationPurchasing
review-purchasing-infoรีวิวข้อมูลจัดซื้อReview purchasing informationWork Owner
fill-in-pre-work-procedures-formรับทราบระเบียบปฏิบัติงานAcknowledge work proceduresContractor
review-pre-work-procedures-formรีวิวเอกสารระเบียบปฏิบัติงานReview work procedures docsWork Owner
approvedอนุมัติApproved(terminal)
canceledยกเลิกCanceled(terminal)

Command Labels

Command KeyThai LabelDescription
approveอนุมัติApprove project registration
cancelยกเลิกงานCancel workflow
request-purchasing-infoส่งไปจัดซื้อSend to Purchasing
submit-purchasing-infoส่งกลับSubmit back to Work Owner
request-pre-work-procedures-formส่งไปผู้รับเหมาSend to Contractor
submit-pre-work-procedures-formรับทราบระเบียบปฏิบัติงานSubmit acknowledgement

Optional Command Labels

ElementThai LabelDescription
Skip badgeข้ามได้Shown on optional commands
Skipped indicatorข้ามShown on skipped steps
Return indicatorShown on return target

Labels Verified Against

  • review-task-toolbar.component.ts (command buttons)
  • review-task-stepper.component.ts (step indicators)
  • project-registration-state-metadata.config.ts (state names)
  • workflow-visualization.config.ts (optional path config)