Files
jdescopingtool/TestScripts/SearchPage/60_TimeSpan_ProfitCenter_ItemNumber.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

13 KiB

Search Type 60: Time Span + Profit Center + Item Number - Test Scripts

Overview

Test scripts for Search Type 60 (Time Span + Profit Center + Item Number). This search type allows users to find work orders within a specified date range, filtered by profit center (branch code) and item number.

Filters Enabled:

  • Timespan (Min Date, Max Date)
  • Profit Center
  • Item Number

Valid Test Data

Timespan

Valid date range in database: 1905-01-20 to 2020-09-01

Recommended test ranges:

  • 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

Item Numbers

ItemNumber
00003200700
00003200800
00003200900
00003201500
00003205000
00003205100
00003205200
00003208800
00003208900
00003209000
00003300100
00003300200
00003300300
00003304900
00003305000

Positive Test Cases

TC-060-P01: Single Profit Center and Single Item Number

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Type60 Single PC and Item Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1PM
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

  • Search is created with status "Queued"
  • Search appears in search list with correct name
  • Search criteria shows: Date range, Profit Center 1PM, Item Number 00003200700

TC-060-P02: Multiple Profit Centers with Single Item Number

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Type60 Multiple PC Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2020-09-01
  6. Add profit center 1AM
  7. Add profit center 1BM
  8. Add profit center 1CM
  9. Add item number 00003200800
  10. Click Submit button

Expected Results:

  • Search is created with status "Queued"
  • Search criteria shows all three profit centers

TC-060-P03: Single Profit Center with Multiple Item Numbers

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Type60 Multiple Items Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2019-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 2DM
  7. Add item number 00003200700
  8. Add item number 00003200800
  9. Add item number 00003200900
  10. Click Submit button

Expected Results:

  • Search is created with status "Queued"
  • Search criteria shows all three item numbers

TC-060-P04: Multiple Profit Centers with Multiple Item Numbers

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Type60 Multiple PC and Items Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2020-09-01
  6. Add profit centers: 1PM, 2SM, 3TM
  7. Add item numbers: 00003205000, 00003205100, 00003205200
  8. Click Submit button

Expected Results:

  • Search is created with status "Queued"
  • Search criteria shows all profit centers and item numbers

TC-060-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: "Type60 Recent Range Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2020-01-01
  5. Set maximum date to 2020-09-01
  6. Add profit center 4IM
  7. Add item number 00003300100
  8. Click Submit button

Expected Results:

  • Search is created with status "Queued"
  • Date range correctly captured as 2020-01-01 to 2020-09-01

TC-060-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: "Type60 Historical Range Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2016-01-01
  5. Set maximum date to 2017-12-31
  6. Add profit center 5SM
  7. Add item number 00003300200
  8. Click Submit button

Expected Results:

  • Search is created with status "Queued"
  • Historical date range correctly captured

TC-060-P07: Same Day 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: "Type60 Same Day Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2019-06-15
  5. Set maximum date to 2019-06-15
  6. Add profit center 1AM
  7. Add item number 00003208800
  8. Click Submit button

Expected Results:

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

TC-060-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: "Type60 All Profit Centers Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2020-09-01
  6. Add all profit centers: 1AM, 1BM, 1CM, 1PM, 2DM, 2SM, 3TM, 4IM, 5SM
  7. Add item number 00003304900
  8. Click Submit button

Expected Results:

  • Search is created with status "Queued"
  • All 9 profit centers are captured in search criteria

Negative Test Cases

TC-060-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 empty
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1PM
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

  • Form validation error is displayed
  • Search is not created
  • Error message indicates search name is required

TC-060-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: "Type60 Missing PC Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2019-12-31
  6. Do not add any profit centers
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

  • Form validation error is displayed
  • Search is not created
  • Error message indicates at least one profit center is required

TC-060-N03: Missing Item Number

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Type60 Missing Item Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1PM
  7. Do not add any item numbers
  8. Click Submit button

Expected Results:

  • Form validation error is displayed
  • Search is not created
  • Error message indicates at least one item number is required

TC-060-N04: Missing Minimum 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: "Type60 Missing Min Date Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Leave minimum date empty
  5. Set maximum date to 2019-12-31
  6. Add profit center 1PM
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

  • Form validation error is displayed
  • Search is not created
  • Error message indicates minimum date is required

TC-060-N05: Missing Maximum 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: "Type60 Missing Max Date Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Leave maximum date empty
  6. Add profit center 1PM
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

  • Form validation error is displayed
  • Search is not created
  • Error message indicates maximum date is required

TC-060-N06: Invalid Date Range (Min > Max)

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Type60 Invalid Date Range Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2020-01-01
  5. Set maximum date to 2018-01-01
  6. Add profit center 1PM
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

  • Form validation error is displayed
  • Search is not created
  • Error message indicates minimum date must be before or equal to maximum date

TC-060-N07: 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: "Type60 Empty PC Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2019-12-31
  6. Attempt to add empty string as profit center
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

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

TC-060-N08: Empty Item Number 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: "Type60 Empty Item Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1PM
  7. Attempt to add empty string as item number
  8. Click Submit button

Expected Results:

  • Empty item number value is rejected
  • Form validation error is displayed
  • Search is not created

TC-060-N09: Whitespace-Only Search Name

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: " " (whitespace only)
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Set minimum date to 2018-01-01
  5. Set maximum date to 2019-12-31
  6. Add profit center 1PM
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

  • Form validation error is displayed
  • Search is not created
  • Error message indicates valid search name is required

TC-060-N10: Missing All Required Filters

Preconditions:

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

Steps:

  1. Navigate to Submit Search page
  2. Enter search name: "Type60 No Filters Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Leave minimum date empty
  5. Leave maximum date empty
  6. Do not add any profit centers
  7. Do not add any item numbers
  8. Click Submit button

Expected Results:

  • Form validation errors are displayed for all missing required fields
  • Search is not created
  • Error messages indicate all required fields: min date, max date, profit center, and item number

TC-060-N11: Invalid Date 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: "Type60 Invalid Date Format Test"
  3. Select "Time Span + Profit Center + Item Number" search type (Type 60)
  4. Attempt to enter 32/13/2019 as minimum date
  5. Set maximum date to 2019-12-31
  6. Add profit center 1PM
  7. Add item number 00003200700
  8. Click Submit button

Expected Results:

  • Date field rejects invalid format
  • Form validation error is displayed if invalid date is accepted
  • Search is not created

Notes

  • Profit centers are branch codes from the ProfitCenter table
  • Item numbers are part numbers from the Item table
  • Multiple profit centers and item numbers result in OR conditions within each filter
  • Combined filters (profit center AND item number) use AND logic between filter types