04383d672c
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.
635 lines
17 KiB
Markdown
635 lines
17 KiB
Markdown
# Search Type 70: Time Span + Profit Center + Item/Operation/MIS - Test Scripts
|
|
|
|
## Overview
|
|
|
|
Test scripts for Search Type 70 (Time Span + Profit Center + Item/Operation/MIS). This search type allows users to find work orders within a specified date range, filtered by profit center and part operations (Item Number, Operation Number, MIS Number, and MIS Revision).
|
|
|
|
**Filters Enabled:**
|
|
- Timespan (Min Date, Max Date)
|
|
- Profit Center
|
|
- Part Operations (Item Number, Operation Number, MIS Number, MIS Revision)
|
|
|
|
---
|
|
|
|
## 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/Operation/MIS (Part Operations)
|
|
|
|
| ItemNumber | OperationNumber | MisNumber | MisRevision |
|
|
|------------|-----------------|-----------|-------------|
|
|
| 00-5952-012-01 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-012-02 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-013-01 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-013-02 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-013-05 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-013-06 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-014-01 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-014-02 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-014-05 | 505 | 26-1002-003-00 | 00 |
|
|
| 00-5952-014-06 | 505 | 26-1002-003-00 | 00 |
|
|
|
|
---
|
|
|
|
## Positive Test Cases
|
|
|
|
### TC-070-P01: Single Profit Center with Single Part Operation
|
|
|
|
**Preconditions:**
|
|
- User is logged in
|
|
- User has access to the Submit Search page
|
|
|
|
**Steps:**
|
|
1. Navigate to Submit Search page
|
|
2. Enter search name: "Type70 Single PC and Part Op Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
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, Part Operation details
|
|
|
|
---
|
|
|
|
### TC-070-P02: Multiple Profit Centers with Single Part Operation
|
|
|
|
**Preconditions:**
|
|
- User is logged in
|
|
- User has access to the Submit Search page
|
|
|
|
**Steps:**
|
|
1. Navigate to Submit Search page
|
|
2. Enter search name: "Type70 Multiple PC Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
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 part operation:
|
|
- Item: `00-5952-012-02`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
10. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Search is created with status "Queued"
|
|
- Search criteria shows all three profit centers
|
|
|
|
---
|
|
|
|
### TC-070-P03: Single Profit Center with Multiple Part Operations
|
|
|
|
**Preconditions:**
|
|
- User is logged in
|
|
- User has access to the Submit Search page
|
|
|
|
**Steps:**
|
|
1. Navigate to Submit Search page
|
|
2. Enter search name: "Type70 Multiple Part Ops Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `2DM`
|
|
7. Add part operation 1:
|
|
- Item: `00-5952-013-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Add part operation 2:
|
|
- Item: `00-5952-013-02`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
9. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Search is created with status "Queued"
|
|
- Search criteria shows both part operations
|
|
|
|
---
|
|
|
|
### TC-070-P04: Multiple Profit Centers with Multiple Part Operations
|
|
|
|
**Preconditions:**
|
|
- User is logged in
|
|
- User has access to the Submit Search page
|
|
|
|
**Steps:**
|
|
1. Navigate to Submit Search page
|
|
2. Enter search name: "Type70 Multiple PC and Part Ops Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
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 part operation 1:
|
|
- Item: `00-5952-013-05`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Add part operation 2:
|
|
- Item: `00-5952-013-06`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
9. Add part operation 3:
|
|
- Item: `00-5952-014-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
10. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Search is created with status "Queued"
|
|
- Search criteria shows all profit centers and part operations
|
|
|
|
---
|
|
|
|
### TC-070-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: "Type70 Recent Range Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2020-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `4IM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-014-02`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Search is created with status "Queued"
|
|
- Date range correctly captured
|
|
|
|
---
|
|
|
|
### TC-070-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: "Type70 Historical Range Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2016-01-01`
|
|
5. Set maximum date to `2017-12-31`
|
|
6. Add profit center `5SM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-014-05`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Search is created with status "Queued"
|
|
- Historical date range correctly captured
|
|
|
|
---
|
|
|
|
### TC-070-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: "Type70 Same Day Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2019-06-15`
|
|
5. Set maximum date to `2019-06-15`
|
|
6. Add profit center `1AM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-014-06`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Search is created with status "Queued"
|
|
- Same-day date range is accepted
|
|
|
|
---
|
|
|
|
### TC-070-P08: All Profit Centers with Single Part Operation
|
|
|
|
**Preconditions:**
|
|
- User is logged in
|
|
- User has access to the Submit Search page
|
|
|
|
**Steps:**
|
|
1. Navigate to Submit Search page
|
|
2. Enter search name: "Type70 All Profit Centers Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
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 part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
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-070-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/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates search name is required
|
|
|
|
---
|
|
|
|
### TC-070-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: "Type70 Missing PC Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Do not add any profit centers
|
|
7. Add part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
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-070-N03: Missing Part Operation
|
|
|
|
**Preconditions:**
|
|
- User is logged in
|
|
- User has access to the Submit Search page
|
|
|
|
**Steps:**
|
|
1. Navigate to Submit Search page
|
|
2. Enter search name: "Type70 Missing Part Op Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Do not add any part operations
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates at least one part operation is required
|
|
|
|
---
|
|
|
|
### TC-070-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: "Type70 Missing Min Date Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Leave minimum date empty
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates minimum date is required
|
|
|
|
---
|
|
|
|
### TC-070-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: "Type70 Missing Max Date Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Leave maximum date empty
|
|
6. Add profit center `1PM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates maximum date is required
|
|
|
|
---
|
|
|
|
### TC-070-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: "Type70 Invalid Date Range Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2020-09-01`
|
|
5. Set maximum date to `2018-01-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
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-070-N07: Incomplete Part Operation - Missing Item
|
|
|
|
**Preconditions:**
|
|
- User is logged in
|
|
- User has access to the Submit Search page
|
|
|
|
**Steps:**
|
|
1. Navigate to Submit Search page
|
|
2. Enter search name: "Type70 Missing Item Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation with missing Item:
|
|
- Item: (empty)
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates Item Number is required for part operation
|
|
|
|
---
|
|
|
|
### TC-070-N08: Incomplete Part Operation - Missing Operation 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: "Type70 Missing Operation Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation with missing Operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: (empty)
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates Operation Number is required for part operation
|
|
|
|
---
|
|
|
|
### TC-070-N09: Incomplete Part Operation - Missing MIS 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: "Type70 Missing MIS Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation with missing MIS:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: (empty)
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates MIS Number is required for part operation
|
|
|
|
---
|
|
|
|
### TC-070-N10: Incomplete Part Operation - Missing MIS Revision
|
|
|
|
**Preconditions:**
|
|
- User is logged in
|
|
- User has access to the Submit Search page
|
|
|
|
**Steps:**
|
|
1. Navigate to Submit Search page
|
|
2. Enter search name: "Type70 Missing Revision Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation with missing Revision:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: (empty)
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates MIS Revision is required for part operation
|
|
|
|
---
|
|
|
|
### TC-070-N11: 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/Operation/MIS" search type (Type 70)
|
|
4. Set minimum date to `2018-01-01`
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
8. Click Submit button
|
|
|
|
**Expected Results:**
|
|
- Form validation error is displayed
|
|
- Search is not created
|
|
- Error message indicates valid search name is required
|
|
|
|
---
|
|
|
|
### TC-070-N12: 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: "Type70 No Filters Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Leave minimum date empty
|
|
5. Leave maximum date empty
|
|
6. Do not add any profit centers
|
|
7. Do not add any part operations
|
|
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 part operation
|
|
|
|
---
|
|
|
|
### TC-070-N13: 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: "Type70 Invalid Date Format Test"
|
|
3. Select "Time Span + Profit Center + Item/Operation/MIS" search type (Type 70)
|
|
4. Attempt to enter `2019/13/45` as minimum date
|
|
5. Set maximum date to `2020-09-01`
|
|
6. Add profit center `1PM`
|
|
7. Add part operation:
|
|
- Item: `00-5952-012-01`
|
|
- Operation: `505`
|
|
- MIS: `26-1002-003-00`
|
|
- Revision: `00`
|
|
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
|
|
|
|
- Part operations consist of four fields: Item Number, Operation Number, MIS Number, and MIS Revision
|
|
- All four fields are required for each part operation entry
|
|
- Multiple profit centers and part operations result in OR conditions within each filter
|
|
- Combined filters (profit center AND part operation) use AND logic between filter types
|
|
- MIS data comes from the MisData_Hist table
|