Skip to main content

Standard Workflow Path

Revision 1.0 (2026-01-14) - Complete standard path test cases

This document contains test cases for the standard Project Registration workflow path:

Work Owner → Purchasing → Work Owner Review → Contractor → Final Review → Approval

Test Cases: TC-PR-001 to TC-PR-031


1. Task Creation Tests

TC-PR-001: Work Owner creates project registration task

Precondition: Logged in as Work Owner, project exists with PR.No

StepActionExpected Result
1Navigate to Tasks menuTask menu opens
2Click "สร้างงานใหม่"Create task dialog opens
3Select "การลงทะเบียนโครงการ"Task type selected
4Search for project by PR.NoProject found and displayed
5Select projectProject linked
6Click "สร้าง"Task created
7Verify task appears in listTask visible with "กรอกข้อมูลโครงการ" status

Result: ☐ Pass ☐ Fail


TC-PR-002: Verify task details after creation

Precondition: Task just created from TC-PR-001

StepActionExpected Result
1Click on created taskTask review page opens
2Verify workflow stepperShows "กรอกข้อมูลโครงการ" as current step
3Verify form tabProjectRegistrationForm displayed
4Verify command buttons"ส่งไปจัดซื้อ", "ส่งไปผู้รับเหมา", and "ยกเลิกงาน" visible
5Verify assigneeCurrent user is assignee

Result: ☐ Pass ☐ Fail


TC-PR-003: Non-Work Owner cannot create task

Precondition: Logged in as Purchasing

StepActionExpected Result
1Navigate to Create TaskCreate task dialog opens
2Verify "การลงทะเบียนโครงการ"Either not visible or disabled

Result: ☐ Pass ☐ Fail


2. Work Owner - Fill Project Info Tests

TC-PR-005: Fill project registration form

Precondition: Task at FillInProjectInfo state

StepActionExpected Result
1Open taskForm displayed
2Verify form is editableFields can be modified
3Fill required fieldsData entered
4Verify auto-saveForm saves automatically
5Verify save indicatorShows "บันทึกแล้ว" status

Result: ☐ Pass ☐ Fail


TC-PR-006: Send to Purchasing

Precondition: Project info filled

StepActionExpected Result
1Click "ส่งไปจัดซื้อ"Assignee dialog opens
2Select Purchasing userUser selected
3Add note (optional)Note entered
4Click confirmCommand executed
5Verify state changeStepper shows "กรอกข้อมูลจัดซื้อ"
6Verify assignee changedPurchasing user is new assignee

Result: ☐ Pass ☐ Fail


TC-PR-007: Cancel workflow from FillInProjectInfo

Precondition: Task at FillInProjectInfo state

StepActionExpected Result
1Click "ยกเลิกงาน"Confirmation dialog opens
2Confirm cancelCommand executed
3Verify stateTask shows "ยกเลิก" status
4Verify task closedNo more commands available

Result: ☐ Pass ☐ Fail


TC-PR-008: Verify form locked after sending

Precondition: Task sent to Purchasing (now at FillInPurchasingInfo)

StepActionExpected Result
1Open task as Work OwnerTask opens
2Verify form is read-onlyCannot edit fields
3Verify no commandsNo action buttons visible (not assignee)

Result: ☐ Pass ☐ Fail


3. Purchasing - Fill PO Info Tests

TC-PR-009: Purchasing receives task

Precondition: Logged in as Purchasing, task at FillInPurchasingInfo

StepActionExpected Result
1Navigate to task listTask visible
2Verify "รอดำเนินการ" filterTask shows as pending
3Click on taskTask review page opens
4Verify current assigneeShows Purchasing user

Result: ☐ Pass ☐ Fail


TC-PR-010: Fill purchasing information

Precondition: Task open as Purchasing assignee

StepActionExpected Result
1Verify form editablePO fields can be modified
2Enter PO.NoField populated
3Enter PO durationField populated
4Enter budgetField populated
5Verify auto-saveForm saves automatically

Result: ☐ Pass ☐ Fail


TC-PR-011: Submit back to Work Owner

Precondition: PO info filled

StepActionExpected Result
1Click "ส่งกลับ"Confirmation appears
2Confirm submitCommand executed
3Verify state changeStepper shows "รีวิวข้อมูลจัดซื้อ"
4Verify assigneeWork Owner is new assignee

Result: ☐ Pass ☐ Fail


TC-PR-012: Work Owner cannot edit during Purchasing state

Precondition: Task at FillInPurchasingInfo state

StepActionExpected Result
1Login as Work OwnerLogged in
2Open taskTask opens
3Verify form read-onlyCannot edit
4Verify no commandsNot the assignee

Result: ☐ Pass ☐ Fail


4. Work Owner - Review Purchasing Tests

TC-PR-013: Review purchasing information

Precondition: Task at ReviewPurchasingInfo state, Work Owner assignee

StepActionExpected Result
1Open taskTask opens with form
2Verify PO data displayedPurchasing info visible
3Verify form editableCan modify if needed
4Verify commands"ส่งไปจัดซื้อ", "ส่งไปผู้รับเหมา", "ยกเลิกงาน" visible

Result: ☐ Pass ☐ Fail


TC-PR-014: Send back to Purchasing for revision

Precondition: At ReviewPurchasingInfo state

StepActionExpected Result
1Click "ส่งไปจัดซื้อ"Assignee dialog opens
2Select Purchasing userUser selected
3Add revision noteNote entered
4ConfirmCommand executed
5Verify stateBack to "กรอกข้อมูลจัดซื้อ"

Result: ☐ Pass ☐ Fail


TC-PR-015: Send to Contractor

Precondition: At ReviewPurchasingInfo state

StepActionExpected Result
1Click "ส่งไปผู้รับเหมา"Assignee dialog opens
2Select Contractor userUser selected (supervisor)
3ConfirmCommand executed
4Verify stateShows "รับทราบระเบียบปฏิบัติงาน"
5Verify assigneeContractor is assignee

Result: ☐ Pass ☐ Fail


TC-PR-016: Verify transaction log shows history

Precondition: Task has been through multiple states

StepActionExpected Result
1Open taskTask opens
2Click "ประวัติ" tabTransaction log displayed
3Verify entriesAll state transitions listed
4Verify timestampsEach entry has date/time
5Verify assignersShows who performed each action

Result: ☐ Pass ☐ Fail


5. Contractor - Acknowledge Procedures Tests

TC-PR-017: Contractor receives task

Precondition: Logged in as Contractor, task at FillInPreWorkProceduresForm

StepActionExpected Result
1Navigate to task listTask visible
2Click on taskTask review page opens
3Verify form tabsBoth Doc 1 and Doc 2 visible
4Verify Doc 1 lockedProjectRegistrationForm read-only
5Verify Doc 2 editablePreWorkProceduresForm can be edited

Result: ☐ Pass ☐ Fail


TC-PR-018: Fill pre-work procedures form

Precondition: Task open as Contractor

StepActionExpected Result
1Navigate to Doc 2 tabPreWorkProceduresForm displayed
2Verify form editableFields can be modified
3Fill acknowledgement fieldsData entered
4Verify auto-saveForm saves automatically

Result: ☐ Pass ☐ Fail


TC-PR-019: Submit acknowledgement

Precondition: Pre-work procedures form filled

StepActionExpected Result
1Click "รับทราบระเบียบปฏิบัติงาน"Confirmation appears
2Confirm submitCommand executed
3Verify stateShows "รีวิวเอกสารระเบียบปฏิบัติงาน"
4Verify assigneeWork Owner is assignee

Result: ☐ Pass ☐ Fail


TC-PR-020: Contractor cannot see other commands

Precondition: Task at FillInPreWorkProceduresForm

StepActionExpected Result
1Open task as ContractorTask opens
2Verify only "รับทราบระเบียบปฏิบัติงาน" visibleNo cancel or routing options

Result: ☐ Pass ☐ Fail


6. Work Owner - Final Review & Approve Tests

TC-PR-021: Review pre-work procedures

Precondition: Task at ReviewPreWorkProceduresForm state

StepActionExpected Result
1Open task as Work OwnerTask opens
2Verify Doc 1 lockedCannot edit
3Verify Doc 2 editableCan make final edits
4Verify commands"อนุมัติ", "ส่งไปจัดซื้อ", "ส่งไปผู้รับเหมา", "ยกเลิกงาน"

Result: ☐ Pass ☐ Fail


TC-PR-022: Approve project registration

Precondition: At ReviewPreWorkProceduresForm state

StepActionExpected Result
1Click "อนุมัติ"Confirmation dialog opens
2Confirm approvalCommand executed
3Verify stateShows "อนุมัติ" then "เสร็จสิ้น"
4Verify project statusProject status = Started (1)
5Verify task closedNo more commands available

Result: ☐ Pass ☐ Fail


TC-PR-023: Send back to Contractor for revision

Precondition: At ReviewPreWorkProceduresForm state

StepActionExpected Result
1Click "ส่งไปผู้รับเหมา"Assignee dialog opens
2Select ContractorUser selected
3Add revision noteNote entered
4ConfirmCommand executed
5Verify stateBack to "รับทราบระเบียบปฏิบัติงาน"

Result: ☐ Pass ☐ Fail


TC-PR-024: Verify all forms locked after approval

Precondition: Task approved

StepActionExpected Result
1Open approved taskTask opens
2Verify Doc 1 read-onlyCannot edit
3Verify Doc 2 read-onlyCannot edit
4Verify stepperShows "อนุมัติ" as final state

Result: ☐ Pass ☐ Fail


7. Workflow Cancel Tests

TC-PR-025: Cancel from ReviewPurchasingInfo

Precondition: Task at ReviewPurchasingInfo state

StepActionExpected Result
1Click "ยกเลิกงาน"Confirmation dialog
2Confirm cancelCommand executed
3Verify stateShows "ยกเลิก"
4Verify project statusProject status = Canceled (3)

Result: ☐ Pass ☐ Fail


TC-PR-026: Cancel from ReviewPreWorkProceduresForm

Precondition: Task at ReviewPreWorkProceduresForm state

StepActionExpected Result
1Click "ยกเลิกงาน"Confirmation dialog
2Confirm cancelCommand executed
3Verify stateShows "ยกเลิก"

Result: ☐ Pass ☐ Fail


TC-PR-027: Contractor cannot cancel workflow

Precondition: Task at FillInPreWorkProceduresForm

StepActionExpected Result
1Open task as ContractorTask opens
2Verify no cancel button"ยกเลิกงาน" not visible

Result: ☐ Pass ☐ Fail


8. Task History & Notes Tests

TC-PR-028: View complete transaction log

Precondition: Task with multiple state transitions

StepActionExpected Result
1Open taskTask opens
2Click "ประวัติ" tabTransaction log displayed
3Verify columnsเหตุการณ์, วันที่/เวลา, ดำเนินการโดย, ผู้รับผิดชอบ, หมายเหตุ
4Verify summaryTotal, Extensions, Approvals counts

Result: ☐ Pass ☐ Fail


TC-PR-029: Create task note

Precondition: Task open, user is assignee

StepActionExpected Result
1Click "บันทึก" tabNotes section displayed
2Enter note textText entered
3Click saveNote saved
4Verify note displayedNote visible with timestamp

Result: ☐ Pass ☐ Fail


TC-PR-030: Edit task note

Precondition: Note exists on task

StepActionExpected Result
1Click edit on existing noteNote becomes editable
2Modify textText changed
3Save changesNote updated
4Verify updated textNew text displayed

Result: ☐ Pass ☐ Fail


TC-PR-031: Delete task note

Precondition: Note exists on task

StepActionExpected Result
1Click delete on noteConfirmation dialog
2Confirm deleteNote removed
3Verify note goneNote no longer visible

Result: ☐ Pass ☐ Fail


Test Execution Sign-off

RoleNameDateSignature
Tester
Reviewer

Notes

[Add any notes or observations during testing]