Files
jdescopingtool/TestScripts/SearchPage/160_TimeSpan_ProfitCenter_Operator.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

14 KiB

Search Type 160: Time Span + Profit Center + Operator

Overview

Test scripts for Search Type 160, which combines Time Span, Profit Center, and Operator filters. This search type allows users to search for work order data within a specific date range, filtered by profit center (branch code) and operator (user ID).

Search Type ID: 160

Filters Enabled:

  • Timespan (Start Date, End Date)
  • Profit Center
  • Operator

Valid Test Data

Timespan

  • Valid date range in database: 1905-01-20 to 2020-09-01
  • Recent: 2020-01-01 to 2020-09-01
  • Mid-range: 2018-01-01 to 2019-12-31
  • Historical: 2016-01-01 to 2017-12-31

Profit Centers (Branch Codes)

Code
1AM
1BM
1CM
1PM
2DM
2SM
3TM
4IM
5SM

Operators (User IDs)

UserID
ADAMSSN
AGNEWA
AGNEWL
ALASMARB
ALEXIUCG
ALLENHY
ALLENNI
ALURUM
ALVESM1
APONTEVE
ARCHILAHI
ARGUELLC
ASHARK
ASLANESA
AVRAAMIL
AYINDED
AYOUBR
BACKL
BAIZEJ
BAKERB

Positive Test Cases

TC-160-P01: Single Profit Center and Single Operator

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P01 Single Values"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1CM
  7. Add operator ALEXIUCG
  8. Submit search

Expected Results:

  • Search is created with status "Queued"
  • Search appears in search list with correct name
  • Profit center and operator filters are saved correctly
  • Search processes successfully

TC-160-P02: Multiple Profit Centers with Single Operator

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P02 Multiple Profit Centers"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1AM
  7. Add profit center 1BM
  8. Add profit center 1CM
  9. Add operator ADAMSSN
  10. Submit search

Expected Results:

  • Search is created with status "Queued"
  • All three profit centers are saved in the search criteria
  • Search processes successfully

TC-160-P03: Single Profit Center with Multiple Operators

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P03 Multiple Operators"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2020-09-01
  6. Add profit center 1PM
  7. Add operator AGNEWA
  8. Add operator AGNEWL
  9. Add operator ALASMARB
  10. Submit search

Expected Results:

  • Search is created with status "Queued"
  • All three operators are saved in the search criteria
  • Search processes successfully

TC-160-P04: Multiple Profit Centers and Multiple Operators

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P04 Multiple All"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2020-09-01
  6. Add profit center 2DM
  7. Add profit center 2SM
  8. Add operator ALLENHY
  9. Add operator ALLENNI
  10. Submit search

Expected Results:

  • Search is created with status "Queued"
  • All profit centers and operators are saved in the search criteria
  • Search processes successfully

TC-160-P05: Recent Date Range

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P05 Recent Range"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2020-01-01
  5. Set maximum date to 2020-09-01
  6. Add profit center 3TM
  7. Add operator ALURUM
  8. Submit search

Expected Results:

  • Search is created with status "Queued"
  • Recent date range is accepted
  • Search processes successfully

TC-160-P06: Historical Date Range

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P06 Historical Range"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2016-01-01
  5. Set maximum date to 2017-12-31
  6. Add profit center 4IM
  7. Add operator ALVESM1
  8. Submit search

Expected Results:

  • Search is created with status "Queued"
  • Historical date range is accepted
  • Search processes successfully (may return fewer or no results)

TC-160-P07: Narrow Date Range (Single Month)

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P07 Single Month"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-06-01
  5. Set maximum date to 2019-06-30
  6. Add profit center 5SM
  7. Add operator APONTEVE
  8. Submit search

Expected Results:

  • Search is created with status "Queued"
  • Narrow date range is accepted
  • Search processes successfully

TC-160-P08: All Profit Centers

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P08 All Profit Centers"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1AM
  7. Add profit center 1BM
  8. Add profit center 1CM
  9. Add profit center 1PM
  10. Add profit center 2DM
  11. Add profit center 2SM
  12. Add profit center 3TM
  13. Add profit center 4IM
  14. Add profit center 5SM
  15. Add operator ARCHILAHI
  16. Submit search

Expected Results:

  • Search is created with status "Queued"
  • All nine profit centers are saved correctly
  • Search processes successfully

TC-160-P09: Many Operators

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P09 Many Operators"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2020-09-01
  6. Add profit center 1CM
  7. Add operator ARGUELLC
  8. Add operator ASHARK
  9. Add operator ASLANESA
  10. Add operator AVRAAMIL
  11. Add operator AYINDED
  12. Submit search

Expected Results:

  • Search is created with status "Queued"
  • All five operators are saved correctly
  • Search processes successfully

TC-160-P10: Same Start and End Date

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-P10 Same Day"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-07-15
  5. Set maximum date to 2019-07-15
  6. Add profit center 1PM
  7. Add operator AYOUBR
  8. Submit search

Expected Results:

  • Search is created with status "Queued"
  • Same-day date range is accepted
  • Search processes successfully

Negative Test Cases

TC-160-N01: Missing Date Range

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N01 No Dates"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Leave minimum date empty
  5. Leave maximum date empty
  6. Add profit center 1CM
  7. Add operator ALEXIUCG
  8. Attempt to submit search

Expected Results:

  • Validation error is displayed
  • User is prompted to enter a valid date range
  • Search is not created

TC-160-N02: Missing Profit Center

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N02 No Profit Center"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Do not add any profit center
  7. Add operator ALEXIUCG
  8. Attempt to submit search

Expected Results:

  • Validation error is displayed
  • User is prompted to add at least one profit center
  • Search is not created

TC-160-N03: Missing Operator

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N03 No Operator"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1CM
  7. Do not add any operator
  8. Attempt to submit search

Expected Results:

  • Validation error is displayed
  • User is prompted to add at least one operator
  • Search is not created

TC-160-N04: Start Date After End Date

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N04 Invalid Date Range"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2020-09-01
  5. Set maximum date to 2019-01-01
  6. Add profit center 1CM
  7. Add operator ALEXIUCG
  8. Attempt to submit search

Expected Results:

  • Validation error is displayed
  • User is prompted that start date must be before end date
  • Search is not created

TC-160-N05: Empty Profit Center Value

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N05 Empty Profit Center"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Attempt to add an empty string as profit center
  7. Add operator ALEXIUCG
  8. Attempt to submit search

Expected Results:

  • Empty profit center value is rejected
  • Validation error is displayed
  • Search is not created

TC-160-N06: Empty Operator Value

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N06 Empty Operator"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1CM
  7. Attempt to add an empty string as operator
  8. Attempt to submit search

Expected Results:

  • Empty operator value is rejected
  • Validation error is displayed
  • Search is not created

TC-160-N07: 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 empty
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1CM
  7. Add operator ALEXIUCG
  8. Attempt to submit search

Expected Results:

  • Validation error is displayed
  • User is prompted to enter a search name
  • Search is not created

TC-160-N08: Missing Start Date Only

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N08 No Start Date"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Leave minimum date empty
  5. Set maximum date to 2019-12-31
  6. Add profit center 1CM
  7. Add operator ALEXIUCG
  8. Attempt to submit search

Expected Results:

  • Validation error is displayed
  • User is prompted to enter a start date
  • Search is not created

TC-160-N09: Missing End Date Only

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N09 No End Date"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Leave maximum date empty
  6. Add profit center 1CM
  7. Add operator ALEXIUCG
  8. Attempt to submit search

Expected Results:

  • Validation error is displayed
  • User is prompted to enter an end date
  • Search is not created

TC-160-N10: Whitespace-Only Profit Center

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "TC-160-N10 Whitespace Profit Center"
  3. Select "Time Span + Profit Center + Operator" search type
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Attempt to add " " (whitespace only) as profit center
  7. Add operator ALEXIUCG
  8. Attempt to submit search

Expected Results:

  • Whitespace-only profit center is rejected
  • Validation error is displayed
  • Search is not created

Notes

  • Profit center codes are 3-character branch codes (e.g., 1AM, 1CM, 2DM)
  • Operator IDs are uppercase user codes (e.g., ALEXIUCG, ADAMSSN)
  • Operators from WorkOrderRouting table
  • Useful for finding work done by specific operators at specific profit centers/branches
  • Similar to Type 150 but uses Profit Center instead of Work Center