Files
jdescopingtool/TestScripts/SearchPage/10_WorkOrder.md
T
Joseph Doherty 04383d672c refactor: UI file upload components and ephemeral RSA key service
Replace InputFile with RadzenUpload in filter panels for better UX,
switch to ephemeral RSA keys (safe for transport-only encryption),
and add test scripts and documentation files.
2026-01-28 17:22:30 -05:00

8.2 KiB

Work Order Search (Type 10) - Test Scripts

Overview

Test scripts for Work Order search functionality (Search Type 10). This search type allows users to search by one or more work order numbers without requiring a time span or other filters.

Filters Enabled: Work Order only


Valid Test Data

Work Orders

WorkOrderNumber ItemNumber
99059700 00598004702
99002260 82070000028
99002259 82070000027
99002258 82070000019
99002257 82070000018
99002256 82070000017
99002255 00855140333
99002254 00855480834
99002252 82070000016
99002251 00855910448
99002250 82070000015
99002249 00855480834
99002248 00855910446
99002247 00855910447
99002246 82900171601

Positive Test Cases

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Single Work Order"
  3. Select "Work Order" search type (Type 10)
  4. Enter work order 99059700 in the work order input field
  5. Click Add to add the work order to the list
  6. Verify the work order appears in the selected work orders list
  7. Click Submit Search

Expected Results:

  • Search is created with status "Queued"
  • Search appears in the search list with name "Test Single Work Order"
  • Search type is displayed as "Work Order"
  • Work order 99059700 is stored in the search criteria

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Multiple Work Orders"
  3. Select "Work Order" search type (Type 10)
  4. Enter work order 99059700 and click Add
  5. Enter work order 99002260 and click Add
  6. Enter work order 99002259 and click Add
  7. Verify all three work orders appear in the selected work orders list
  8. Click Submit Search

Expected Results:

  • Search is created with status "Queued"
  • Search appears in the search list with name "Test Multiple Work Orders"
  • All three work orders (99059700, 99002260, 99002259) are stored in the search criteria
  • Search processes all three work orders when executed

TC-010-P03: Work Order Search with Maximum Entries

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Max Work Orders"
  3. Select "Work Order" search type (Type 10)
  4. Add all 15 work orders from the test data list:
    • 99059700, 99002260, 99002259, 99002258, 99002257
    • 99002256, 99002255, 99002254, 99002252, 99002251
    • 99002250, 99002249, 99002248, 99002247, 99002246
  5. Verify all work orders appear in the selected list
  6. Click Submit Search

Expected Results:

  • Search is created with status "Queued"
  • All 15 work orders are stored in the search criteria
  • Search processes successfully

TC-010-P04: Work Order Search - Remove and Re-add

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Remove Re-add"
  3. Select "Work Order" search type (Type 10)
  4. Add work order 99059700
  5. Add work order 99002260
  6. Remove work order 99059700 from the list
  7. Verify only 99002260 remains in the list
  8. Add work order 99002258
  9. Click Submit Search

Expected Results:

  • Search is created with status "Queued"
  • Only work orders 99002260 and 99002258 are stored in the search criteria
  • Work order 99059700 is NOT included

TC-010-P05: Work Order Search - Duplicate Prevention

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Duplicate Prevention"
  3. Select "Work Order" search type (Type 10)
  4. Add work order 99059700
  5. Attempt to add work order 99059700 again
  6. Observe system behavior

Expected Results:

  • System prevents duplicate work order entry OR displays validation message
  • Work order 99059700 appears only once in the list
  • User can proceed to submit with single entry

Negative Test Cases

TC-010-N01: Missing Search Name

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Leave search name field empty
  3. Select "Work Order" search type (Type 10)
  4. Add work order 99059700
  5. Click Submit Search

Expected Results:

  • Validation error is displayed indicating search name is required
  • Search is NOT created
  • User remains on Submit Search page
  • Form highlights the search name field as invalid

TC-010-N02: No Search Type Selected

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test No Type"
  3. Do NOT select any search type
  4. Attempt to add work orders (if possible)
  5. Click Submit Search

Expected Results:

  • Validation error is displayed indicating search type is required
  • Search is NOT created
  • User remains on Submit Search page
  • Work order input field may be disabled until search type is selected

TC-010-N03: Empty Work Order List

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Empty Work Orders"
  3. Select "Work Order" search type (Type 10)
  4. Do NOT add any work orders
  5. Click Submit Search

Expected Results:

  • Validation error is displayed indicating at least one work order is required
  • Search is NOT created
  • User remains on Submit Search page
  • Work order section is highlighted as requiring input

TC-010-N04: Invalid Work Order Format

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Invalid Format"
  3. Select "Work Order" search type (Type 10)
  4. Enter invalid work order value: "ABC123XYZ"
  5. Click Add

Expected Results:

  • Validation error is displayed for invalid work order format
  • Invalid work order is NOT added to the list
  • User can correct the input and try again

TC-010-N05: Work Order with Special Characters

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Special Characters"
  3. Select "Work Order" search type (Type 10)
  4. Enter work order with special characters: "99059700!@#"
  5. Click Add

Expected Results:

  • Validation error is displayed for invalid characters
  • Work order with special characters is NOT added to the list
  • User is prompted to enter valid work order number

TC-010-N06: Empty Work Order Input

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Empty Input"
  3. Select "Work Order" search type (Type 10)
  4. Leave work order input field empty
  5. Click Add

Expected Results:

  • Validation error is displayed or Add button is disabled
  • Empty value is NOT added to the list
  • User must enter a value before adding

TC-010-N07: Whitespace-Only Work Order

Preconditions:

  • User is logged in
  • User has access to the Submit Search page

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Test Whitespace"
  3. Select "Work Order" search type (Type 10)
  4. Enter only spaces in work order input: " "
  5. Click Add

Expected Results:

  • Validation error is displayed or input is trimmed and rejected
  • Whitespace-only value is NOT added to the list
  • User must enter a valid work order number

Notes

  • Work order data was extracted from WorkOrder_Hist table
  • All work orders in the test data are known to exist in the development database
  • Work order numbers are typically 8-digit numeric values