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.
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-01to2020-09-01 - Mid-range:
2018-01-01to2019-12-31 - Historical:
2016-01-01to2017-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:
- Navigate to Submit Search page
- Enter search name: "Type60 Single PC and Item Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2019-12-31 - Add profit center
1PM - Add item number
00003200700 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Multiple PC Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2020-09-01 - Add profit center
1AM - Add profit center
1BM - Add profit center
1CM - Add item number
00003200800 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Multiple Items Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Add profit center
2DM - Add item number
00003200700 - Add item number
00003200800 - Add item number
00003200900 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Multiple PC and Items Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2020-09-01 - Add profit centers:
1PM,2SM,3TM - Add item numbers:
00003205000,00003205100,00003205200 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Recent Range Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2020-01-01 - Set maximum date to
2020-09-01 - Add profit center
4IM - Add item number
00003300100 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Historical Range Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2016-01-01 - Set maximum date to
2017-12-31 - Add profit center
5SM - Add item number
00003300200 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Same Day Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2019-06-15 - Set maximum date to
2019-06-15 - Add profit center
1AM - Add item number
00003208800 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 All Profit Centers Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2020-09-01 - Add all profit centers: 1AM, 1BM, 1CM, 1PM, 2DM, 2SM, 3TM, 4IM, 5SM
- Add item number
00003304900 - 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:
- Navigate to Submit Search page
- Leave search name empty
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2019-12-31 - Add profit center
1PM - Add item number
00003200700 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Missing PC Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2019-12-31 - Do not add any profit centers
- Add item number
00003200700 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Missing Item Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2019-12-31 - Add profit center
1PM - Do not add any item numbers
- 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Missing Min Date Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Leave minimum date empty
- Set maximum date to
2019-12-31 - Add profit center
1PM - Add item number
00003200700 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Missing Max Date Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Leave maximum date empty
- Add profit center
1PM - Add item number
00003200700 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Invalid Date Range Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2020-01-01 - Set maximum date to
2018-01-01 - Add profit center
1PM - Add item number
00003200700 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Empty PC Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2019-12-31 - Attempt to add empty string as profit center
- Add item number
00003200700 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Empty Item Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2019-12-31 - Add profit center
1PM - Attempt to add empty string as item number
- 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:
- Navigate to Submit Search page
- Enter search name: " " (whitespace only)
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Set minimum date to
2018-01-01 - Set maximum date to
2019-12-31 - Add profit center
1PM - Add item number
00003200700 - 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:
- Navigate to Submit Search page
- Enter search name: "Type60 No Filters Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Leave minimum date empty
- Leave maximum date empty
- Do not add any profit centers
- Do not add any item numbers
- 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:
- Navigate to Submit Search page
- Enter search name: "Type60 Invalid Date Format Test"
- Select "Time Span + Profit Center + Item Number" search type (Type 60)
- Attempt to enter
32/13/2019as minimum date - Set maximum date to
2019-12-31 - Add profit center
1PM - Add item number
00003200700 - 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