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.
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-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 |
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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P01 Single Values"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Add profit center
1CM - Add operator
ALEXIUCG - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P02 Multiple Profit Centers"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2018-01-01 - Set maximum date to
2019-12-31 - Add profit center
1AM - Add profit center
1BM - Add profit center
1CM - Add operator
ADAMSSN - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P03 Multiple Operators"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2020-09-01 - Add profit center
1PM - Add operator
AGNEWA - Add operator
AGNEWL - Add operator
ALASMARB - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P04 Multiple All"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2018-01-01 - Set maximum date to
2020-09-01 - Add profit center
2DM - Add profit center
2SM - Add operator
ALLENHY - Add operator
ALLENNI - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P05 Recent Range"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2020-01-01 - Set maximum date to
2020-09-01 - Add profit center
3TM - Add operator
ALURUM - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P06 Historical Range"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2016-01-01 - Set maximum date to
2017-12-31 - Add profit center
4IM - Add operator
ALVESM1 - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P07 Single Month"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-06-01 - Set maximum date to
2019-06-30 - Add profit center
5SM - Add operator
APONTEVE - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P08 All Profit Centers"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Add profit center
1AM - Add profit center
1BM - Add profit center
1CM - Add profit center
1PM - Add profit center
2DM - Add profit center
2SM - Add profit center
3TM - Add profit center
4IM - Add profit center
5SM - Add operator
ARCHILAHI - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P09 Many Operators"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2018-01-01 - Set maximum date to
2020-09-01 - Add profit center
1CM - Add operator
ARGUELLC - Add operator
ASHARK - Add operator
ASLANESA - Add operator
AVRAAMIL - Add operator
AYINDED - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-P10 Same Day"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-07-15 - Set maximum date to
2019-07-15 - Add profit center
1PM - Add operator
AYOUBR - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N01 No Dates"
- Select "Time Span + Profit Center + Operator" search type
- Leave minimum date empty
- Leave maximum date empty
- Add profit center
1CM - Add operator
ALEXIUCG - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N02 No Profit Center"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Do not add any profit center
- Add operator
ALEXIUCG - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N03 No Operator"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Add profit center
1CM - Do not add any operator
- 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N04 Invalid Date Range"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2020-09-01 - Set maximum date to
2019-01-01 - Add profit center
1CM - Add operator
ALEXIUCG - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N05 Empty Profit Center"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Attempt to add an empty string as profit center
- Add operator
ALEXIUCG - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N06 Empty Operator"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Add profit center
1CM - Attempt to add an empty string as operator
- 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:
- Navigate to Submit Search page
- Leave search name empty
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Add profit center
1CM - Add operator
ALEXIUCG - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N08 No Start Date"
- Select "Time Span + Profit Center + Operator" search type
- Leave minimum date empty
- Set maximum date to
2019-12-31 - Add profit center
1CM - Add operator
ALEXIUCG - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N09 No End Date"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Leave maximum date empty
- Add profit center
1CM - Add operator
ALEXIUCG - 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:
- Navigate to Submit Search page
- Enter search name: "TC-160-N10 Whitespace Profit Center"
- Select "Time Span + Profit Center + Operator" search type
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Attempt to add " " (whitespace only) as profit center
- Add operator
ALEXIUCG - 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
WorkOrderRoutingtable - 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