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.
This commit is contained in:
@@ -0,0 +1,410 @@
|
||||
# Search Type 100: Time Span + Work Center + Item Number
|
||||
|
||||
## Overview
|
||||
|
||||
Search Type 100 allows users to search by a date range combined with work center(s) and item number(s). This search type finds work orders processed through specific work centers for specific items within the given time range.
|
||||
|
||||
### Filters Enabled
|
||||
|
||||
| Filter | Description | Required |
|
||||
|--------|-------------|----------|
|
||||
| Timespan | Date range (Min Date to Max Date) | Yes |
|
||||
| Work Center | One or more work center codes | Yes |
|
||||
| Item Number | One or more item numbers | Yes |
|
||||
|
||||
---
|
||||
|
||||
## 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`
|
||||
|
||||
### Work Centers
|
||||
|
||||
| Code |
|
||||
|------|
|
||||
| 0083AS |
|
||||
| 0278AS |
|
||||
| 0424AS |
|
||||
| 0586AS |
|
||||
| 0696AS |
|
||||
| 1010AS |
|
||||
| 1011AS |
|
||||
| 10595CA |
|
||||
| 11275CA |
|
||||
| 11350CA |
|
||||
| 11355CA |
|
||||
| 13316CA |
|
||||
| 14305CA |
|
||||
| 15660CA |
|
||||
| 1700CB |
|
||||
| 200038CA |
|
||||
| 200039 |
|
||||
| 200039CA |
|
||||
| 200041CA |
|
||||
| 200042CA |
|
||||
|
||||
### Item Numbers
|
||||
|
||||
| ItemNumber |
|
||||
|------------|
|
||||
| 00003200700 |
|
||||
| 00003200800 |
|
||||
| 00003200900 |
|
||||
| 00003201500 |
|
||||
| 00003205000 |
|
||||
| 00003205100 |
|
||||
| 00003205200 |
|
||||
| 00003208800 |
|
||||
| 00003208900 |
|
||||
| 00003209000 |
|
||||
| 00003300100 |
|
||||
| 00003300200 |
|
||||
| 00003300300 |
|
||||
| 00003304900 |
|
||||
| 00003305000 |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-100-P01: Single Work Center 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: "Test 100-P01 Single WC Single Item"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `10595CA`
|
||||
7. Add item number `00003205000`
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the user's search list
|
||||
- Search criteria shows: Date range 2018-01-01 to 2019-12-31, Work Center: 10595CA, Item: 00003205000
|
||||
|
||||
---
|
||||
|
||||
### TC-100-P02: Single Work 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: "Test 100-P02 Single WC Multi Items"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `11275CA`
|
||||
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 appears in the user's search list
|
||||
- Search criteria shows work center and all three item numbers
|
||||
|
||||
---
|
||||
|
||||
### TC-100-P03: Multiple Work 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: "Test 100-P03 Multi WC Single Item"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Add work center `0278AS`
|
||||
8. Add work center `0424AS`
|
||||
9. Add item number `00003201500`
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria shows all three work centers and the item number
|
||||
|
||||
---
|
||||
|
||||
### TC-100-P04: Multiple Work 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: "Test 100-P04 Multi WC Multi Items"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2017-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `10595CA`
|
||||
7. Add work center `11350CA`
|
||||
8. Add item number `00003300100`
|
||||
9. Add item number `00003300200`
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria shows both work centers and both item numbers
|
||||
|
||||
---
|
||||
|
||||
### TC-100-P05: Historical Date Range with Work Center and Items
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 100-P05 Historical Search"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add work center `1700CB`
|
||||
7. Add item number `00003205100`
|
||||
8. Add item number `00003205200`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria reflects the historical date range
|
||||
|
||||
---
|
||||
|
||||
### TC-100-P06: Work Center Code Variants (AS vs CA suffix)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 100-P06 WC Code Variants"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `1010AS` (AS suffix)
|
||||
7. Add work center `14305CA` (CA suffix)
|
||||
8. Add item number `00003208800`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Both work center code formats are accepted
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-100-N01: Missing Required 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: "Test 100-N01 Missing Dates"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `10595CA`
|
||||
7. Add item number `00003205000`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates date range is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-100-N02: Missing Work 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: "Test 100-N02 Missing Work Center"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Do NOT add any work center (leave empty)
|
||||
7. Add item number `00003205000`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates at least one work center is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-100-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: "Test 100-N03 Missing Item Number"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `10595CA`
|
||||
7. Do NOT add any item number (leave empty)
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates at least one item number is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-100-N04: Invalid Date Range (End Before Start)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 100-N04 Invalid Date Range"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2018-01-01` (before minimum date)
|
||||
6. Add work center `10595CA`
|
||||
7. Add item number `00003205000`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates maximum date must be after minimum date
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-100-N05: Missing Minimum 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: "Test 100-N05 Missing Min Date"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Leave minimum date empty
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `11275CA`
|
||||
7. Add item number `00003200700`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates minimum date is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-100-N06: Missing Maximum 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: "Test 100-N06 Missing Max Date"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `0083AS`
|
||||
7. Add item number `00003201500`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates maximum date is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-100-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 + Work Center + Item Number" search type (Type 100)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `10595CA`
|
||||
7. Add item number `00003205000`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates search name is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-100-N08: All Required Filters Missing
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 100-N08 All Filters Missing"
|
||||
3. Select "Time Span + Work Center + Item Number" search type (Type 100)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Do NOT add any work center
|
||||
7. Do NOT add any item number
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation errors are displayed
|
||||
- Error messages indicate all required fields are missing
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Data was extracted from `WorkOrder_Hist` table (1,742,847 records)
|
||||
- Work centers from `WorkOrderStep_Hist` table
|
||||
- Work center codes have different suffixes (AS, CA, CB) indicating different work center types
|
||||
- Item numbers are 11-digit codes in the JDE system
|
||||
@@ -0,0 +1,302 @@
|
||||
# Work Order Search (Type 10) - Test Scripts
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Work Order search functionality (Search Type 10). This search type allows users to search by one or more work order numbers without requiring a time span or other filters.
|
||||
|
||||
**Filters Enabled:** Work Order only
|
||||
|
||||
---
|
||||
|
||||
## Valid Test Data
|
||||
|
||||
### Work Orders
|
||||
|
||||
| WorkOrderNumber | ItemNumber |
|
||||
|-----------------|------------|
|
||||
| 99059700 | 00598004702 |
|
||||
| 99002260 | 82070000028 |
|
||||
| 99002259 | 82070000027 |
|
||||
| 99002258 | 82070000019 |
|
||||
| 99002257 | 82070000018 |
|
||||
| 99002256 | 82070000017 |
|
||||
| 99002255 | 00855140333 |
|
||||
| 99002254 | 00855480834 |
|
||||
| 99002252 | 82070000016 |
|
||||
| 99002251 | 00855910448 |
|
||||
| 99002250 | 82070000015 |
|
||||
| 99002249 | 00855480834 |
|
||||
| 99002248 | 00855910446 |
|
||||
| 99002247 | 00855910447 |
|
||||
| 99002246 | 82900171601 |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-010-P01: Single Work Order Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Single Work Order"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Enter work order `99059700` in the work order input field
|
||||
5. Click Add to add the work order to the list
|
||||
6. Verify the work order appears in the selected work orders list
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the search list with name "Test Single Work Order"
|
||||
- Search type is displayed as "Work Order"
|
||||
- Work order `99059700` is stored in the search criteria
|
||||
|
||||
---
|
||||
|
||||
### TC-010-P02: Multiple Work Orders Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Multiple Work Orders"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Enter work order `99059700` and click Add
|
||||
5. Enter work order `99002260` and click Add
|
||||
6. Enter work order `99002259` and click Add
|
||||
7. Verify all three work orders appear in the selected work orders list
|
||||
8. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the search list with name "Test Multiple Work Orders"
|
||||
- All three work orders (`99059700`, `99002260`, `99002259`) are stored in the search criteria
|
||||
- Search processes all three work orders when executed
|
||||
|
||||
---
|
||||
|
||||
### TC-010-P03: Work Order Search with Maximum Entries
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Max Work Orders"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Add all 15 work orders from the test data list:
|
||||
- 99059700, 99002260, 99002259, 99002258, 99002257
|
||||
- 99002256, 99002255, 99002254, 99002252, 99002251
|
||||
- 99002250, 99002249, 99002248, 99002247, 99002246
|
||||
5. Verify all work orders appear in the selected list
|
||||
6. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 15 work orders are stored in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-010-P04: Work Order Search - Remove and Re-add
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Remove Re-add"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Add work order `99059700`
|
||||
5. Add work order `99002260`
|
||||
6. Remove work order `99059700` from the list
|
||||
7. Verify only `99002260` remains in the list
|
||||
8. Add work order `99002258`
|
||||
9. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Only work orders `99002260` and `99002258` are stored in the search criteria
|
||||
- Work order `99059700` is NOT included
|
||||
|
||||
---
|
||||
|
||||
### TC-010-P05: Work Order Search - Duplicate Prevention
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Duplicate Prevention"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Add work order `99059700`
|
||||
5. Attempt to add work order `99059700` again
|
||||
6. Observe system behavior
|
||||
|
||||
**Expected Results:**
|
||||
- System prevents duplicate work order entry OR displays validation message
|
||||
- Work order `99059700` appears only once in the list
|
||||
- User can proceed to submit with single entry
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-010-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 field empty
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Add work order `99059700`
|
||||
5. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating search name is required
|
||||
- Search is NOT created
|
||||
- User remains on Submit Search page
|
||||
- Form highlights the search name field as invalid
|
||||
|
||||
---
|
||||
|
||||
### TC-010-N02: No Search Type Selected
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test No Type"
|
||||
3. Do NOT select any search type
|
||||
4. Attempt to add work orders (if possible)
|
||||
5. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating search type is required
|
||||
- Search is NOT created
|
||||
- User remains on Submit Search page
|
||||
- Work order input field may be disabled until search type is selected
|
||||
|
||||
---
|
||||
|
||||
### TC-010-N03: Empty Work Order List
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Empty Work Orders"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Do NOT add any work orders
|
||||
5. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating at least one work order is required
|
||||
- Search is NOT created
|
||||
- User remains on Submit Search page
|
||||
- Work order section is highlighted as requiring input
|
||||
|
||||
---
|
||||
|
||||
### TC-010-N04: Invalid Work Order 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: "Test Invalid Format"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Enter invalid work order value: "ABC123XYZ"
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid work order format
|
||||
- Invalid work order is NOT added to the list
|
||||
- User can correct the input and try again
|
||||
|
||||
---
|
||||
|
||||
### TC-010-N05: Work Order with Special Characters
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Special Characters"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Enter work order with special characters: "99059700!@#"
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid characters
|
||||
- Work order with special characters is NOT added to the list
|
||||
- User is prompted to enter valid work order number
|
||||
|
||||
---
|
||||
|
||||
### TC-010-N06: Empty Work Order Input
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Empty Input"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Leave work order input field empty
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed or Add button is disabled
|
||||
- Empty value is NOT added to the list
|
||||
- User must enter a value before adding
|
||||
|
||||
---
|
||||
|
||||
### TC-010-N07: Whitespace-Only Work Order
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Whitespace"
|
||||
3. Select "Work Order" search type (Type 10)
|
||||
4. Enter only spaces in work order input: " "
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed or input is trimmed and rejected
|
||||
- Whitespace-only value is NOT added to the list
|
||||
- User must enter a valid work order number
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Work order data was extracted from `WorkOrder_Hist` table
|
||||
- All work orders in the test data are known to exist in the development database
|
||||
- Work order numbers are typically 8-digit numeric values
|
||||
@@ -0,0 +1,400 @@
|
||||
# Search Type 110: Time Span + Work Center + Extract MIS
|
||||
|
||||
## Overview
|
||||
|
||||
Search Type 110 allows users to search by a date range combined with work center(s) and the Extract MIS boolean flag. When Extract MIS is enabled, the search extracts MIS (Manufacturing Information System) data associated with work orders processed through the specified work center(s) within the given time range.
|
||||
|
||||
### Filters Enabled
|
||||
|
||||
| Filter | Description | Required |
|
||||
|--------|-------------|----------|
|
||||
| Timespan | Date range (Min Date to Max Date) | Yes |
|
||||
| Work Center | One or more work center codes | Yes |
|
||||
| Extract MIS | Boolean flag to extract MIS data | Yes |
|
||||
|
||||
---
|
||||
|
||||
## 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`
|
||||
|
||||
### Work Centers
|
||||
|
||||
| Code |
|
||||
|------|
|
||||
| 0083AS |
|
||||
| 0278AS |
|
||||
| 0424AS |
|
||||
| 0586AS |
|
||||
| 0696AS |
|
||||
| 1010AS |
|
||||
| 1011AS |
|
||||
| 10595CA |
|
||||
| 11275CA |
|
||||
| 11350CA |
|
||||
| 11355CA |
|
||||
| 13316CA |
|
||||
| 14305CA |
|
||||
| 15660CA |
|
||||
| 1700CB |
|
||||
| 200038CA |
|
||||
| 200039 |
|
||||
| 200039CA |
|
||||
| 200041CA |
|
||||
| 200042CA |
|
||||
|
||||
### Extract MIS Values
|
||||
|
||||
| Value | Description |
|
||||
|-------|-------------|
|
||||
| true | Extract MIS data for matching work orders |
|
||||
| false | Do not extract MIS data |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-110-P01: Single Work Center with Extract MIS Enabled
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 110-P01 Single WC Extract MIS"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `11275CA`
|
||||
7. Enable Extract MIS checkbox (set to true)
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the user's search list
|
||||
- Search criteria shows: Date range 2018-01-01 to 2020-09-01, Work Center: 11275CA, Extract MIS: true
|
||||
|
||||
---
|
||||
|
||||
### TC-110-P02: Multiple Work Centers with Extract MIS Enabled
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 110-P02 Multi WC Extract MIS"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `10595CA`
|
||||
7. Add work center `11275CA`
|
||||
8. Add work center `11350CA`
|
||||
9. Enable Extract MIS checkbox (set to true)
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the user's search list
|
||||
- Search criteria shows all three work centers and Extract MIS: true
|
||||
|
||||
---
|
||||
|
||||
### TC-110-P03: Single Work Center with Extract MIS Disabled
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 110-P03 Single WC No Extract MIS"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Disable Extract MIS checkbox (set to false)
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the user's search list
|
||||
- Search criteria shows: Date range 2018-01-01 to 2019-12-31, Work Center: 0083AS, Extract MIS: false
|
||||
|
||||
---
|
||||
|
||||
### TC-110-P04: Historical Date Range with Multiple Work 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: "Test 110-P04 Historical Multi WC"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add work center `1010AS`
|
||||
7. Add work center `1011AS`
|
||||
8. Enable Extract MIS checkbox (set to true)
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria reflects the historical date range and both work centers
|
||||
|
||||
---
|
||||
|
||||
### TC-110-P05: Work Center Code Variants with Extract MIS
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 110-P05 WC Code Variants"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0696AS` (AS suffix)
|
||||
7. Add work center `13316CA` (CA suffix)
|
||||
8. Add work center `1700CB` (CB suffix)
|
||||
9. Enable Extract MIS checkbox (set to true)
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All work center code formats are accepted
|
||||
|
||||
---
|
||||
|
||||
### TC-110-P06: Toggle Extract MIS (True then False)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 110-P06 Toggle Extract MIS True"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `14305CA`
|
||||
7. Enable Extract MIS checkbox (set to true)
|
||||
8. Click Submit button
|
||||
9. Verify search is created
|
||||
10. Create another search with name: "Test 110-P06 Toggle Extract MIS False"
|
||||
11. Use same date range and work center
|
||||
12. Disable Extract MIS checkbox (set to false)
|
||||
13. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Both searches are created with status "Queued"
|
||||
- First search shows Extract MIS: true
|
||||
- Second search shows Extract MIS: false
|
||||
|
||||
---
|
||||
|
||||
### TC-110-P07: Large Work Center Selection
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 110-P07 Many Work Centers"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work centers: 0083AS, 0278AS, 0424AS, 0586AS, 0696AS, 1010AS
|
||||
7. Enable Extract MIS checkbox (set to true)
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All six work centers are included in search criteria
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-110-N01: Missing Required 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: "Test 110-N01 Missing Dates"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `11275CA`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates date range is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-110-N02: Missing Work 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: "Test 110-N02 Missing Work Center"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Do NOT add any work center (leave empty)
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates at least one work center is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-110-N03: Invalid Date Range (End Before Start)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 110-N03 Invalid Date Range"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2018-01-01` (before minimum date)
|
||||
6. Add work center `11275CA`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates maximum date must be after minimum date
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-110-N04: Missing Minimum 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: "Test 110-N04 Missing Min Date"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Leave minimum date empty
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0083AS`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates minimum date is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-110-N05: Missing Maximum 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: "Test 110-N05 Missing Max Date"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `10595CA`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates maximum date is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-110-N06: 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 + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `11275CA`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates search name is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-110-N07: All Required Filters Missing
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 110-N07 All Filters Missing"
|
||||
3. Select "Time Span + Work Center + Extract MIS" search type (Type 110)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Do NOT add any work center
|
||||
7. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation errors are displayed
|
||||
- Error messages indicate all required fields are missing
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Data was extracted from `WorkOrder_Hist` table (1,742,847 records)
|
||||
- Work centers from `WorkOrderStep_Hist` table
|
||||
- MIS data from `MisData_Hist` table
|
||||
- The Extract MIS flag determines whether MIS data is included in search results
|
||||
- Work center codes have different suffixes (AS, CA, CB) indicating different work center types
|
||||
@@ -0,0 +1,551 @@
|
||||
# Search Type 120: Time Span + Work Center + Item/Operation/MIS
|
||||
|
||||
## Overview
|
||||
|
||||
Search Type 120 allows users to search by a date range combined with work center(s) and part operation(s). Part operations are defined by a combination of Item Number, Operation Number, MIS Number, and MIS Revision. This search type finds work orders processed through specific work centers that match the specified part operation criteria within the given time range.
|
||||
|
||||
### Filters Enabled
|
||||
|
||||
| Filter | Description | Required |
|
||||
|--------|-------------|----------|
|
||||
| Timespan | Date range (Min Date to Max Date) | Yes |
|
||||
| Work Center | One or more work center codes | Yes |
|
||||
| Item/Operation/MIS | One or more part operations (Item + Op + MIS + Rev) | Yes |
|
||||
|
||||
---
|
||||
|
||||
## 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`
|
||||
|
||||
### Work Centers
|
||||
|
||||
| Code |
|
||||
|------|
|
||||
| 0083AS |
|
||||
| 0278AS |
|
||||
| 0424AS |
|
||||
| 0586AS |
|
||||
| 0696AS |
|
||||
| 1010AS |
|
||||
| 1011AS |
|
||||
| 10595CA |
|
||||
| 11275CA |
|
||||
| 11350CA |
|
||||
| 11355CA |
|
||||
| 13316CA |
|
||||
| 14305CA |
|
||||
| 15660CA |
|
||||
| 1700CB |
|
||||
| 200038CA |
|
||||
| 200039 |
|
||||
| 200039CA |
|
||||
| 200041CA |
|
||||
| 200042CA |
|
||||
|
||||
### Part Operations (Item/Operation/MIS)
|
||||
|
||||
| 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-120-P01: Single Work 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: "Test 120-P01 Single WC Single PartOp"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0083AS`
|
||||
7. Add part operation:
|
||||
- Item Number: `00-5952-013-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the user's search list
|
||||
- Search criteria shows: Date range, Work Center: 0083AS, and the part operation details
|
||||
|
||||
---
|
||||
|
||||
### TC-120-P02: Single Work 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: "Test 120-P02 Single WC Multi PartOps"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `10595CA`
|
||||
7. Add part operation 1:
|
||||
- Item Number: `00-5952-012-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Add part operation 2:
|
||||
- Item Number: `00-5952-012-02`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
9. Add part operation 3:
|
||||
- Item Number: `00-5952-013-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria shows all three part operations
|
||||
|
||||
---
|
||||
|
||||
### TC-120-P03: Multiple Work 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: "Test 120-P03 Multi WC Single PartOp"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `11275CA`
|
||||
7. Add work center `11350CA`
|
||||
8. Add work center `11355CA`
|
||||
9. Add part operation:
|
||||
- Item Number: `00-5952-014-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria shows all three work centers and the part operation
|
||||
|
||||
---
|
||||
|
||||
### TC-120-P04: Multiple Work 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: "Test 120-P04 Multi WC Multi PartOps"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2017-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0083AS`
|
||||
7. Add work center `0278AS`
|
||||
8. Add part operation 1:
|
||||
- Item Number: `00-5952-013-05`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
9. Add part operation 2:
|
||||
- Item Number: `00-5952-013-06`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria shows both work centers and both part operations
|
||||
|
||||
---
|
||||
|
||||
### TC-120-P05: Historical Date Range with 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: "Test 120-P05 Historical PartOp Search"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add work center `1010AS`
|
||||
7. Add part operation:
|
||||
- Item Number: `00-5952-014-02`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria reflects the historical date range
|
||||
|
||||
---
|
||||
|
||||
### TC-120-P06: Same MIS Different Items
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 120-P06 Same MIS Diff Items"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `13316CA`
|
||||
7. Add part operation 1:
|
||||
- Item Number: `00-5952-014-05`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Add part operation 2:
|
||||
- Item Number: `00-5952-014-06`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Both part operations with same MIS but different items are accepted
|
||||
|
||||
---
|
||||
|
||||
### TC-120-P07: Work Center Code Variants with 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: "Test 120-P07 WC Variants PartOps"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0424AS` (AS suffix)
|
||||
7. Add work center `14305CA` (CA suffix)
|
||||
8. Add work center `1700CB` (CB suffix)
|
||||
9. Add part operation:
|
||||
- Item Number: `00-5952-012-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All work center code formats are accepted
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-120-N01: Missing Required 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: "Test 120-N01 Missing Dates"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `0083AS`
|
||||
7. Add part operation:
|
||||
- Item Number: `00-5952-013-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates date range is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-N02: Missing Work 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: "Test 120-N02 Missing Work Center"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Do NOT add any work center (leave empty)
|
||||
7. Add part operation:
|
||||
- Item Number: `00-5952-013-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates at least one work center is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-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: "Test 120-N03 Missing Part Operation"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0083AS`
|
||||
7. Do NOT add any part operation (leave empty)
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates at least one part operation is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-N04: Invalid Date Range (End Before Start)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 120-N04 Invalid Date Range"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2018-01-01` (before minimum date)
|
||||
6. Add work center `0083AS`
|
||||
7. Add part operation:
|
||||
- Item Number: `00-5952-013-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates maximum date must be after minimum date
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-N05: Missing Minimum 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: "Test 120-N05 Missing Min Date"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Leave minimum date empty
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `10595CA`
|
||||
7. Add part operation:
|
||||
- Item Number: `00-5952-012-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates minimum date is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-N06: Missing Maximum 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: "Test 120-N06 Missing Max Date"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `11275CA`
|
||||
7. Add part operation:
|
||||
- Item Number: `00-5952-014-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates maximum date is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-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 + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0083AS`
|
||||
7. Add part operation:
|
||||
- Item Number: `00-5952-013-01`
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates search name is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-N08: Incomplete Part Operation (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: "Test 120-N08 Incomplete PartOp No Item"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0083AS`
|
||||
7. Attempt to add part operation with:
|
||||
- Item Number: (leave empty)
|
||||
- Operation Number: `505`
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates Item Number is required for part operation
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-N09: 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: "Test 120-N09 Incomplete PartOp No Op"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0083AS`
|
||||
7. Attempt to add part operation with:
|
||||
- Item Number: `00-5952-013-01`
|
||||
- Operation Number: (leave empty)
|
||||
- MIS Number: `26-1002-003-00`
|
||||
- MIS Revision: `00`
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates Operation Number is required for part operation
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-120-N10: All Required Filters Missing
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 120-N10 All Filters Missing"
|
||||
3. Select "Time Span + Work Center + Item/Operation/MIS" search type (Type 120)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Do NOT add any work center
|
||||
7. Do NOT add any part operation
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation errors are displayed
|
||||
- Error messages indicate all required fields are missing
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Data was extracted from `WorkOrder_Hist` table (1,742,847 records)
|
||||
- Work centers from `WorkOrderStep_Hist` table
|
||||
- Part operations from `MisData_Hist` table
|
||||
- Part operations require all four components: Item Number, Operation Number, MIS Number, and MIS Revision
|
||||
- Work center codes have different suffixes (AS, CA, CB) indicating different work center types
|
||||
- The same MIS Number can be associated with different Item Numbers
|
||||
@@ -0,0 +1,442 @@
|
||||
# Search Type 130: Time Span + Work Center + Work Order + Item/Operation/MIS
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Search Type 130, which combines Time Span, Work Center, Work Order, and Item/Operation/MIS (Part Operations) filters. This search type allows users to search for work order data within a specific date range, filtered by work center, work order number, and part operation details.
|
||||
|
||||
**Search Type ID:** 130
|
||||
|
||||
**Filters Enabled:**
|
||||
- Timespan (Start Date, End Date)
|
||||
- Work Center
|
||||
- Work Order
|
||||
- Item/Operation/MIS (Part Operations)
|
||||
|
||||
---
|
||||
|
||||
## 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`
|
||||
|
||||
### Work Centers
|
||||
| Code |
|
||||
|------|
|
||||
| 0083AS |
|
||||
| 0278AS |
|
||||
| 0424AS |
|
||||
| 0586AS |
|
||||
| 0696AS |
|
||||
| 1010AS |
|
||||
| 1011AS |
|
||||
| 10595CA |
|
||||
| 11275CA |
|
||||
| 11350CA |
|
||||
|
||||
### Work Orders
|
||||
| WorkOrderNumber | ItemNumber |
|
||||
|-----------------|------------|
|
||||
| 99059700 | 00598004702 |
|
||||
| 99002260 | 82070000028 |
|
||||
| 99002259 | 82070000027 |
|
||||
| 99002258 | 82070000019 |
|
||||
| 99002257 | 82070000018 |
|
||||
| 99002256 | 82070000017 |
|
||||
| 99002255 | 00855140333 |
|
||||
| 99002254 | 00855480834 |
|
||||
|
||||
### 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-014-01 | 505 | 26-1002-003-00 | 00 |
|
||||
| 00-5952-014-02 | 505 | 26-1002-003-00 | 00 |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-130-P01: Single Values for All 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: "TC-130-P01 Single Values"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `1010AS`
|
||||
7. Add work order `99002255`
|
||||
8. Add part operation: Item `00-5952-014-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in search list with correct name
|
||||
- All filter values are saved correctly
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-130-P02: Multiple Work 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-130-P02 Multiple Work Centers"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0083AS`
|
||||
7. Add work center `1010AS`
|
||||
8. Add work center `1011AS`
|
||||
9. Add work order `99002260`
|
||||
10. Add part operation: Item `00-5952-012-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
11. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All three work centers are saved in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-130-P03: Multiple Work Orders
|
||||
|
||||
**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-130-P03 Multiple Work Orders"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0424AS`
|
||||
7. Add work order `99002255`
|
||||
8. Add work order `99002256`
|
||||
9. Add work order `99002257`
|
||||
10. Add part operation: Item `00-5952-013-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
11. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All three work orders are saved in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-130-P04: 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: "TC-130-P04 Multiple Part Ops"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0586AS`
|
||||
7. Add work order `99002258`
|
||||
8. Add part operation: Item `00-5952-012-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. Add part operation: Item `00-5952-012-02`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
10. Add part operation: Item `00-5952-013-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
11. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All three part operations are saved in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-130-P05: All Filters with Multiple Values
|
||||
|
||||
**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-130-P05 All Multiple Values"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `1010AS`
|
||||
7. Add work center `11275CA`
|
||||
8. Add work order `99002254`
|
||||
9. Add work order `99002255`
|
||||
10. Add part operation: Item `00-5952-014-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
11. Add part operation: Item `00-5952-014-02`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
12. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All work centers, work orders, and part operations are saved correctly
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-130-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-130-P06 Historical Range"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add work center `10595CA`
|
||||
7. Add work order `99059700`
|
||||
8. Add part operation: Item `00-5952-013-02`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. 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-130-P07: Narrow Date Range (Same 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-130-P07 Narrow Date Range"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2020-06-01`
|
||||
5. Set maximum date to `2020-06-30`
|
||||
6. Add work center `0696AS`
|
||||
7. Add work order `99002259`
|
||||
8. Add part operation: Item `00-5952-014-05`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Narrow date range is accepted
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-130-N01: Missing Required 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-130-N01 No Dates"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `1010AS`
|
||||
7. Add work order `99002255`
|
||||
8. Add part operation: Item `00-5952-014-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter a valid date range
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-130-N02: Missing Work 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-130-N02 No Work Center"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Do not add any work center
|
||||
7. Add work order `99002255`
|
||||
8. Add part operation: Item `00-5952-014-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to add at least one work center
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-130-N03: Missing Work Order
|
||||
|
||||
**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-130-N03 No Work Order"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `1010AS`
|
||||
7. Do not add any work order
|
||||
8. Add part operation: Item `00-5952-014-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to add at least one work order
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-130-N04: 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: "TC-130-N04 No Part Op"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `1010AS`
|
||||
7. Add work order `99002255`
|
||||
8. Do not add any part operation
|
||||
9. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to add at least one part operation
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-130-N05: 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-130-N05 Invalid Date Range"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2018-01-01`
|
||||
6. Add work center `1010AS`
|
||||
7. Add work order `99002255`
|
||||
8. Add part operation: Item `00-5952-014-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. 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-130-N06: Empty Work 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-130-N06 Empty Work Center"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Attempt to add an empty string as work center
|
||||
7. Add work order `99002255`
|
||||
8. Add part operation: Item `00-5952-014-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Empty work center value is rejected
|
||||
- Validation error is displayed
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-130-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 + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `1010AS`
|
||||
7. Add work order `99002255`
|
||||
8. Add part operation: Item `00-5952-014-01`, Operation `505`, MIS `26-1002-003-00`, Rev `00`
|
||||
9. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter a search name
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-130-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: "TC-130-N08 Incomplete Part Op"
|
||||
3. Select "Time Span + Work Center + Work Order + Item/Operation/MIS" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `1010AS`
|
||||
7. Add work order `99002255`
|
||||
8. Attempt to add part operation with only Item `00-5952-014-01` (missing operation, MIS, revision)
|
||||
9. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to complete all part operation fields
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Work center codes vary in format (e.g., `0083AS`, `10595CA`, `1700CB`)
|
||||
- Part operations require all four fields: Item Number, Operation Number, MIS Number, and MIS Revision
|
||||
- Data extracted from `WorkOrderStep_Hist` and `MisData_Hist` tables
|
||||
- Work orders from `WorkOrder_Hist` table (1,742,847 records)
|
||||
@@ -0,0 +1,414 @@
|
||||
# Search Type 140: Time Span + Item Number
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Search Type 140, which combines Time Span and Item Number filters. This search type allows users to search for work order data within a specific date range, filtered by one or more item numbers.
|
||||
|
||||
**Search Type ID:** 140
|
||||
|
||||
**Filters Enabled:**
|
||||
- Timespan (Start Date, End Date)
|
||||
- Item Number
|
||||
|
||||
---
|
||||
|
||||
## 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`
|
||||
|
||||
### Item Numbers
|
||||
| ItemNumber |
|
||||
|------------|
|
||||
| 00003200700 |
|
||||
| 00003200800 |
|
||||
| 00003200900 |
|
||||
| 00003201500 |
|
||||
| 00003205000 |
|
||||
| 00003205100 |
|
||||
| 00003205200 |
|
||||
| 00003208800 |
|
||||
| 00003208900 |
|
||||
| 00003209000 |
|
||||
| 00003300100 |
|
||||
| 00003300200 |
|
||||
| 00003300300 |
|
||||
| 00003304900 |
|
||||
| 00003305000 |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-140-P01: 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: "TC-140-P01 Single Item"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add item number `00003300100`
|
||||
7. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in search list with correct name
|
||||
- Item number filter is saved correctly
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-140-P02: 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: "TC-140-P02 Multiple Items"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add item number `00003200700`
|
||||
7. Add item number `00003200800`
|
||||
8. Add item number `00003200900`
|
||||
9. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All three item numbers are saved in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-140-P03: Many 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: "TC-140-P03 Many Items"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add item number `00003205000`
|
||||
7. Add item number `00003205100`
|
||||
8. Add item number `00003205200`
|
||||
9. Add item number `00003208800`
|
||||
10. Add item number `00003208900`
|
||||
11. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All five item numbers are saved in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-140-P04: 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-140-P04 Recent Range"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add item number `00003300200`
|
||||
7. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Recent date range is accepted
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-140-P05: 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-140-P05 Historical Range"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add item number `00003300300`
|
||||
7. 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-140-P06: 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-140-P06 Single Month"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2020-06-01`
|
||||
5. Set maximum date to `2020-06-30`
|
||||
6. Add item number `00003304900`
|
||||
7. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Narrow date range is accepted
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-140-P07: 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-140-P07 Same Day"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2020-05-15`
|
||||
5. Set maximum date to `2020-05-15`
|
||||
6. Add item number `00003305000`
|
||||
7. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Same-day date range is accepted
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-140-P08: Items from Different Series
|
||||
|
||||
**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-140-P08 Different Series"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add item number `00003200700` (32xx series)
|
||||
7. Add item number `00003300100` (33xx series)
|
||||
8. Add item number `00003209000` (32xx series)
|
||||
9. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Items from different number series are accepted
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-140-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-140-N01 No Dates"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Add item number `00003300100`
|
||||
7. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter a valid date range
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-140-N02: 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-140-N02 No Start Date"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Leave minimum date empty
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add item number `00003300100`
|
||||
7. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter a start date
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-140-N03: 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-140-N03 No End Date"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Leave maximum date empty
|
||||
6. Add item number `00003300100`
|
||||
7. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter an end date
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-140-N04: 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: "TC-140-N04 No Item"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Do not add any item number
|
||||
7. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to add at least one item number
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-140-N05: 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-140-N05 Invalid Date Range"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2019-01-01`
|
||||
6. Add item number `00003300100`
|
||||
7. 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-140-N06: 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: "TC-140-N06 Empty Item"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Attempt to add an empty string as item number
|
||||
7. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Empty item number value is rejected
|
||||
- Validation error is displayed
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-140-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 + Item Number" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add item number `00003300100`
|
||||
7. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter a search name
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-140-N08: Whitespace-Only 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: "TC-140-N08 Whitespace Item"
|
||||
3. Select "Time Span + Item Number" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Attempt to add " " (whitespace only) as item number
|
||||
7. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Whitespace-only item number is rejected
|
||||
- Validation error is displayed
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Item numbers are 11-character codes (e.g., `00003300100`)
|
||||
- Data was extracted from `WorkOrder_Hist` table (1,742,847 records)
|
||||
- This is one of the simpler search types with only two filter categories
|
||||
- Useful for finding all work orders associated with specific parts/items
|
||||
@@ -0,0 +1,503 @@
|
||||
# Search Type 150: Time Span + Work Center + Operator
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Search Type 150, which combines Time Span, Work Center, and Operator filters. This search type allows users to search for work order data within a specific date range, filtered by work center and operator (user ID).
|
||||
|
||||
**Search Type ID:** 150
|
||||
|
||||
**Filters Enabled:**
|
||||
- Timespan (Start Date, End Date)
|
||||
- Work 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`
|
||||
|
||||
### Work Centers
|
||||
| Code |
|
||||
|------|
|
||||
| 0083AS |
|
||||
| 0278AS |
|
||||
| 0424AS |
|
||||
| 0586AS |
|
||||
| 0696AS |
|
||||
| 1010AS |
|
||||
| 1011AS |
|
||||
| 10595CA |
|
||||
| 11275CA |
|
||||
| 11350CA |
|
||||
| 11355CA |
|
||||
| 13316CA |
|
||||
| 14305CA |
|
||||
| 15660CA |
|
||||
| 1700CB |
|
||||
|
||||
### Operators (User IDs)
|
||||
| UserID |
|
||||
|--------|
|
||||
| ADAMSSN |
|
||||
| AGNEWA |
|
||||
| AGNEWL |
|
||||
| ALASMARB |
|
||||
| ALEXIUCG |
|
||||
| ALLENHY |
|
||||
| ALLENNI |
|
||||
| ALURUM |
|
||||
| ALVESM1 |
|
||||
| APONTEVE |
|
||||
| ARCHILAHI |
|
||||
| ARGUELLC |
|
||||
| ASHARK |
|
||||
| ASLANESA |
|
||||
| AVRAAMIL |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-150-P01: Single Work 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-150-P01 Single Values"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `14305CA`
|
||||
7. Add operator `AGNEWA`
|
||||
8. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in search list with correct name
|
||||
- Work center and operator filters are saved correctly
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-150-P02: Multiple Work 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-150-P02 Multiple Work Centers"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Add work center `0278AS`
|
||||
8. Add work center `0424AS`
|
||||
9. Add operator `ADAMSSN`
|
||||
10. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All three work centers are saved in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-150-P03: Single Work 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-150-P03 Multiple Operators"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `10595CA`
|
||||
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-150-P04: Multiple Work 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-150-P04 Multiple All"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `11275CA`
|
||||
7. Add work center `11350CA`
|
||||
8. Add operator `ALEXIUCG`
|
||||
9. Add operator `ALLENHY`
|
||||
10. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All work centers and operators are saved in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-150-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-150-P05 Recent Range"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `11355CA`
|
||||
7. Add operator `ALLENNI`
|
||||
8. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Recent date range is accepted
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-150-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-150-P06 Historical Range"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add work center `13316CA`
|
||||
7. Add operator `ALURUM`
|
||||
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-150-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-150-P07 Single Month"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2019-06-01`
|
||||
5. Set maximum date to `2019-06-30`
|
||||
6. Add work center `15660CA`
|
||||
7. Add operator `ALVESM1`
|
||||
8. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Narrow date range is accepted
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-150-P08: Many Work Centers and 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-150-P08 Many Values"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work center `0586AS`
|
||||
7. Add work center `0696AS`
|
||||
8. Add work center `1010AS`
|
||||
9. Add work center `1011AS`
|
||||
10. Add operator `APONTEVE`
|
||||
11. Add operator `ARCHILAHI`
|
||||
12. Add operator `ARGUELLC`
|
||||
13. Add operator `ASHARK`
|
||||
14. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All four work centers and four operators are saved correctly
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-150-P09: Mixed Work Center Formats
|
||||
|
||||
**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-150-P09 Mixed Formats"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0083AS` (4-digit + AS)
|
||||
7. Add work center `10595CA` (5-digit + CA)
|
||||
8. Add work center `1700CB` (4-digit + CB)
|
||||
9. Add operator `ASLANESA`
|
||||
10. Submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Different work center code formats are accepted
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-150-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-150-N01 No Dates"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `14305CA`
|
||||
7. Add operator `AGNEWA`
|
||||
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-150-N02: Missing Work 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-150-N02 No Work Center"
|
||||
3. Select "Time Span + Work 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 work center
|
||||
7. Add operator `AGNEWA`
|
||||
8. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to add at least one work center
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-150-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-150-N03 No Operator"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `14305CA`
|
||||
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-150-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-150-N04 Invalid Date Range"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2019-01-01`
|
||||
6. Add work center `14305CA`
|
||||
7. Add operator `AGNEWA`
|
||||
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-150-N05: Empty Work 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-150-N05 Empty Work Center"
|
||||
3. Select "Time Span + Work 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 work center
|
||||
7. Add operator `AGNEWA`
|
||||
8. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Empty work center value is rejected
|
||||
- Validation error is displayed
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-150-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-150-N06 Empty Operator"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `14305CA`
|
||||
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-150-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 + Work Center + Operator" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `14305CA`
|
||||
7. Add operator `AGNEWA`
|
||||
8. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter a search name
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-150-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-150-N08 No Start Date"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Leave minimum date empty
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `14305CA`
|
||||
7. Add operator `AGNEWA`
|
||||
8. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter a start date
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-150-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-150-N09 No End Date"
|
||||
3. Select "Time Span + Work Center + Operator" search type
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Leave maximum date empty
|
||||
6. Add work center `14305CA`
|
||||
7. Add operator `AGNEWA`
|
||||
8. Attempt to submit search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- User is prompted to enter an end date
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Work center codes vary in format (e.g., `0083AS`, `10595CA`, `1700CB`)
|
||||
- Operator IDs are uppercase user codes (e.g., `AGNEWA`, `ADAMSSN`)
|
||||
- Operators from `WorkOrderRouting` table
|
||||
- Work centers from `WorkOrderStep_Hist` table
|
||||
- Useful for finding work done by specific operators at specific work centers
|
||||
@@ -0,0 +1,552 @@
|
||||
# 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
|
||||
@@ -0,0 +1,367 @@
|
||||
# Component Lot Search (Type 20) - Test Scripts
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Component Lot search functionality (Search Type 20). This search type allows users to search by one or more component lot numbers without requiring a time span or other filters.
|
||||
|
||||
**Filters Enabled:** Component Lot only
|
||||
|
||||
---
|
||||
|
||||
## Valid Test Data
|
||||
|
||||
### Component Lots
|
||||
|
||||
| LotNumber | ItemNumber |
|
||||
|-----------|------------|
|
||||
| 00000099 | 00056191200 |
|
||||
| 00001400 | 00599201632 |
|
||||
| 00003415 | 60700002600 |
|
||||
| 00003415 | 60702501600 |
|
||||
| 00006020 | 00515000522 |
|
||||
| 00006875 | 00519000100 |
|
||||
| 00006991 | 00519000100 |
|
||||
| 00009078 | 00516003000 |
|
||||
| 00009106 | 00234407200 |
|
||||
| 00009106 | 00234406200 |
|
||||
| 00009106 | 00430400700 |
|
||||
| 00009225 | 00883100100 |
|
||||
| 00009226 | 00883100100 |
|
||||
| 00009244 | 00515000522 |
|
||||
| 00009288 | 00519000100 |
|
||||
|
||||
**Note:** Some lot numbers (e.g., 00003415, 00009106) appear with multiple item numbers.
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-020-P01: Single Component Lot Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Single Lot"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Enter lot number `00000099` in the component lot input field
|
||||
5. Click Add to add the lot to the list
|
||||
6. Verify the lot appears in the selected component lots list
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the search list with name "Test Single Lot"
|
||||
- Search type is displayed as "Component Lot"
|
||||
- Lot number `00000099` is stored in the search criteria
|
||||
|
||||
---
|
||||
|
||||
### TC-020-P02: Multiple Component Lots Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Multiple Lots"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Enter lot number `00000099` and click Add
|
||||
5. Enter lot number `00006875` and click Add
|
||||
6. Enter lot number `00009078` and click Add
|
||||
7. Verify all three lots appear in the selected component lots list
|
||||
8. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the search list with name "Test Multiple Lots"
|
||||
- All three lots (`00000099`, `00006875`, `00009078`) are stored in the search criteria
|
||||
- Search processes all three lots when executed
|
||||
|
||||
---
|
||||
|
||||
### TC-020-P03: Component Lot with Multiple Item Associations
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Multi-Item Lot"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Enter lot number `00009106` (associated with items 00234407200, 00234406200, 00430400700)
|
||||
5. Click Add
|
||||
6. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search results include all work orders where lot `00009106` was used
|
||||
- Results may span multiple items associated with this lot number
|
||||
|
||||
---
|
||||
|
||||
### TC-020-P04: Component Lot Search with Maximum Entries
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Max Lots"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Add all unique lot numbers from the test data:
|
||||
- 00000099, 00001400, 00003415, 00006020, 00006875
|
||||
- 00006991, 00009078, 00009106, 00009225, 00009226
|
||||
- 00009244, 00009288
|
||||
5. Verify all lots appear in the selected list
|
||||
6. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 12 unique lot numbers are stored in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-020-P05: Component Lot Search - Remove and Re-add
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Remove Re-add Lot"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Add lot `00000099`
|
||||
5. Add lot `00006875`
|
||||
6. Remove lot `00000099` from the list
|
||||
7. Verify only `00006875` remains in the list
|
||||
8. Add lot `00009225`
|
||||
9. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Only lots `00006875` and `00009225` are stored in the search criteria
|
||||
- Lot `00000099` is NOT included
|
||||
|
||||
---
|
||||
|
||||
### TC-020-P06: Component Lot Search - Duplicate Prevention
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Lot Duplicate Prevention"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Add lot `00006875`
|
||||
5. Attempt to add lot `00006875` again
|
||||
6. Observe system behavior
|
||||
|
||||
**Expected Results:**
|
||||
- System prevents duplicate lot entry OR displays validation message
|
||||
- Lot `00006875` appears only once in the list
|
||||
- User can proceed to submit with single entry
|
||||
|
||||
---
|
||||
|
||||
### TC-020-P07: Component Lot with Leading Zeros
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Leading Zeros"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Enter lot `99` (without leading zeros)
|
||||
5. Click Add
|
||||
6. Observe how the system handles the input
|
||||
|
||||
**Expected Results:**
|
||||
- System either accepts and pads to `00000099` OR
|
||||
- System requires full 8-digit format
|
||||
- Behavior is consistent and documented
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-020-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 field empty
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Add lot `00000099`
|
||||
5. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating search name is required
|
||||
- Search is NOT created
|
||||
- User remains on Submit Search page
|
||||
- Form highlights the search name field as invalid
|
||||
|
||||
---
|
||||
|
||||
### TC-020-N02: No Search Type Selected
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test No Type"
|
||||
3. Do NOT select any search type
|
||||
4. Attempt to add component lots (if possible)
|
||||
5. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating search type is required
|
||||
- Search is NOT created
|
||||
- User remains on Submit Search page
|
||||
- Component lot input field may be disabled until search type is selected
|
||||
|
||||
---
|
||||
|
||||
### TC-020-N03: Empty Component Lot List
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Empty Lots"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Do NOT add any component lots
|
||||
5. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating at least one component lot is required
|
||||
- Search is NOT created
|
||||
- User remains on Submit Search page
|
||||
- Component lot section is highlighted as requiring input
|
||||
|
||||
---
|
||||
|
||||
### TC-020-N04: Invalid Lot Number 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: "Test Invalid Lot Format"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Enter invalid lot value: "ABCD1234"
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid lot number format
|
||||
- Invalid lot is NOT added to the list
|
||||
- User can correct the input and try again
|
||||
|
||||
---
|
||||
|
||||
### TC-020-N05: Component Lot with Special Characters
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Lot Special Characters"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Enter lot with special characters: "00000099!@#"
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid characters
|
||||
- Lot with special characters is NOT added to the list
|
||||
- User is prompted to enter valid lot number
|
||||
|
||||
---
|
||||
|
||||
### TC-020-N06: Empty Component Lot Input
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Empty Lot Input"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Leave component lot input field empty
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed or Add button is disabled
|
||||
- Empty value is NOT added to the list
|
||||
- User must enter a value before adding
|
||||
|
||||
---
|
||||
|
||||
### TC-020-N07: Whitespace-Only Component Lot
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Lot Whitespace"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Enter only spaces in component lot input: " "
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed or input is trimmed and rejected
|
||||
- Whitespace-only value is NOT added to the list
|
||||
- User must enter a valid lot number
|
||||
|
||||
---
|
||||
|
||||
### TC-020-N08: Negative Lot 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: "Test Negative Lot"
|
||||
3. Select "Component Lot" search type (Type 20)
|
||||
4. Enter negative lot number: "-00000099"
|
||||
5. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid format
|
||||
- Negative number is NOT added to the list
|
||||
- User must enter a valid positive lot number
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Component lot data was extracted from `LotUsage_Hist` table joined with `WorkOrder_Hist`
|
||||
- Lot numbers are typically 8-digit numeric values with leading zeros
|
||||
- Some lot numbers may be associated with multiple items in the database
|
||||
- The search returns all work orders where the specified lot was used as a component
|
||||
@@ -0,0 +1,451 @@
|
||||
# Time Span + Profit Center Search (Type 30) - Test Scripts
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Time Span + Profit Center search functionality (Search Type 30). This search type allows users to search by a date range combined with one or more profit center (branch) codes.
|
||||
|
||||
**Filters Enabled:** Timespan, Profit Center
|
||||
|
||||
---
|
||||
|
||||
## 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 |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-030-P01: Single Profit Center with Standard 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: "Test Single Profit Center"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Enter profit center `1AM` in the profit center input field
|
||||
7. Click Add to add the profit center to the list
|
||||
8. Verify the profit center appears in the selected profit centers list
|
||||
9. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the search list with name "Test Single Profit Center"
|
||||
- Search type is displayed as "Time Span + Profit Center"
|
||||
- Date range `2020-01-01` to `2020-09-01` is stored in criteria
|
||||
- Profit center `1AM` is stored in the search criteria
|
||||
|
||||
---
|
||||
|
||||
### TC-030-P02: Multiple Profit Centers Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Multiple Profit Centers"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Enter profit center `1AM` and click Add
|
||||
7. Enter profit center `1PM` and click Add
|
||||
8. Enter profit center `2DM` and click Add
|
||||
9. Verify all three profit centers appear in the selected list
|
||||
10. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Date range `2019-01-01` to `2019-12-31` is stored
|
||||
- All three profit centers (`1AM`, `1PM`, `2DM`) are stored in criteria
|
||||
- Search processes data from all three profit centers
|
||||
|
||||
---
|
||||
|
||||
### TC-030-P03: All Profit Centers Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test All Profit Centers"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2018-12-31`
|
||||
6. Add all profit centers: 1AM, 1BM, 1CM, 1PM, 2DM, 2SM, 3TM, 4IM, 5SM
|
||||
7. Verify all profit centers appear in the selected list
|
||||
8. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 9 profit centers are stored in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-030-P04: Minimum Date Range (Same Day)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Same Day Range"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2020-06-15`
|
||||
5. Set maximum date to `2020-06-15`
|
||||
6. Add profit center `1PM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Date range covers single day `2020-06-15`
|
||||
- Search executes and returns results for that specific day
|
||||
|
||||
---
|
||||
|
||||
### TC-030-P05: Boundary Date - Start of Data 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: "Test Start Boundary"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `1905-01-20` (earliest date in database)
|
||||
5. Set maximum date to `1905-12-31`
|
||||
6. Add profit center `1AM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search accepts the early date boundary
|
||||
- Search may return no results if no data exists for this early period
|
||||
|
||||
---
|
||||
|
||||
### TC-030-P06: Boundary Date - End of Data 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: "Test End Boundary"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2020-08-01`
|
||||
5. Set maximum date to `2020-09-01` (latest date in database)
|
||||
6. Add profit center `1CM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search processes up to the maximum available date
|
||||
- Results include data through September 1, 2020
|
||||
|
||||
---
|
||||
|
||||
### TC-030-P07: Historical Date Range Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Historical Search"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add profit center `2SM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search covers 2-year historical period
|
||||
- Search executes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-030-P08: Profit Center Remove and Re-add
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test PC Remove Re-add"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
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. Remove profit center `1AM` from the list
|
||||
9. Verify only `1BM` remains
|
||||
10. Add profit center `1CM`
|
||||
11. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Only profit centers `1BM` and `1CM` are stored
|
||||
- Profit center `1AM` is NOT included
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-030-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 field empty
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating search name is required
|
||||
- Search is NOT created
|
||||
- User remains on Submit Search page
|
||||
|
||||
---
|
||||
|
||||
### TC-030-N02: No Search Type Selected
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test No Type"
|
||||
3. Do NOT select any search type
|
||||
4. Attempt to set dates and add profit centers (if possible)
|
||||
5. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating search type is required
|
||||
- Search is NOT created
|
||||
- Date and profit center fields may be disabled until search type is selected
|
||||
|
||||
---
|
||||
|
||||
### TC-030-N03: 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: "Test Missing Min Date"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Leave minimum date field empty
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating minimum date is required
|
||||
- Search is NOT created
|
||||
- Minimum date field is highlighted as invalid
|
||||
|
||||
---
|
||||
|
||||
### TC-030-N04: 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: "Test Missing Max Date"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Leave maximum date field empty
|
||||
6. Add profit center `1AM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating maximum date is required
|
||||
- Search is NOT created
|
||||
- Maximum date field is highlighted as invalid
|
||||
|
||||
---
|
||||
|
||||
### TC-030-N05: Empty Profit Center List
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Empty Profit Centers"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Do NOT add any profit centers
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating at least one profit center is required
|
||||
- Search is NOT created
|
||||
- Profit center section is highlighted as requiring input
|
||||
|
||||
---
|
||||
|
||||
### TC-030-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: "Test Invalid Date Range"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2020-01-01` (before min date)
|
||||
6. Add profit center `1AM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating minimum date must be before or equal to maximum date
|
||||
- Search is NOT created
|
||||
- Date fields are highlighted as invalid
|
||||
|
||||
---
|
||||
|
||||
### TC-030-N07: Invalid Profit Center Code
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Invalid PC Code"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Enter invalid profit center: "INVALID"
|
||||
7. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid profit center code OR
|
||||
- System shows no matching profit centers in autocomplete
|
||||
- Invalid code is NOT added to the list
|
||||
|
||||
---
|
||||
|
||||
### TC-030-N08: Future 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: "Test Future Dates"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set minimum date to `2025-01-01`
|
||||
5. Set maximum date to `2025-12-31`
|
||||
6. Add profit center `1AM`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- System may accept future dates (no data exists) OR
|
||||
- Validation warning about future dates
|
||||
- If accepted, search returns no results
|
||||
|
||||
---
|
||||
|
||||
### TC-030-N09: 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: "Test Invalid Date Format"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Attempt to enter invalid date format: "31-12-2020" or "2020/13/45"
|
||||
5. Observe system behavior
|
||||
|
||||
**Expected Results:**
|
||||
- Date picker prevents invalid date entry OR
|
||||
- Validation error is displayed for invalid date format
|
||||
- User must enter valid date in correct format
|
||||
|
||||
---
|
||||
|
||||
### TC-030-N10: Profit Center with Special Characters
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test PC Special Chars"
|
||||
3. Select "Time Span + Profit Center" search type (Type 30)
|
||||
4. Set valid date range
|
||||
5. Enter profit center with special characters: "1AM!@#"
|
||||
6. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid characters
|
||||
- Profit center with special characters is NOT added
|
||||
- User is prompted to enter valid profit center code
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Profit centers are also known as branch codes in the JDE system
|
||||
- Valid date range in the development database is 1905-01-20 to 2020-09-01
|
||||
- Profit center codes are typically 3 characters (letter-letter-letter pattern)
|
||||
- The search returns all work orders within the date range for the specified profit centers
|
||||
@@ -0,0 +1,554 @@
|
||||
# Time Span + Work Center Search (Type 40) - Test Scripts
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Time Span + Work Center search functionality (Search Type 40). This search type allows users to search by a date range combined with one or more work center codes.
|
||||
|
||||
**Filters Enabled:** Timespan, Work Center
|
||||
|
||||
---
|
||||
|
||||
## 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`
|
||||
|
||||
### Work Centers
|
||||
|
||||
| Code |
|
||||
|------|
|
||||
| 0083AS |
|
||||
| 0278AS |
|
||||
| 0424AS |
|
||||
| 0586AS |
|
||||
| 0696AS |
|
||||
| 1010AS |
|
||||
| 1011AS |
|
||||
| 10595CA |
|
||||
| 11275CA |
|
||||
| 11350CA |
|
||||
| 11355CA |
|
||||
| 13316CA |
|
||||
| 14305CA |
|
||||
| 15660CA |
|
||||
| 1700CB |
|
||||
| 200038CA |
|
||||
| 200039 |
|
||||
| 200039CA |
|
||||
| 200041CA |
|
||||
| 200042CA |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-040-P01: Single Work Center with Standard 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: "Test Single Work Center"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Enter work center `0083AS` in the work center input field
|
||||
7. Click Add to add the work center to the list
|
||||
8. Verify the work center appears in the selected work centers list
|
||||
9. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the search list with name "Test Single Work Center"
|
||||
- Search type is displayed as "Time Span + Work Center"
|
||||
- Date range `2019-01-01` to `2019-12-31` is stored in criteria
|
||||
- Work center `0083AS` is stored in the search criteria
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P02: Multiple Work Centers Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Multiple Work Centers"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Enter work center `0083AS` and click Add
|
||||
7. Enter work center `10595CA` and click Add
|
||||
8. Enter work center `1700CB` and click Add
|
||||
9. Verify all three work centers appear in the selected list
|
||||
10. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Date range `2018-01-01` to `2019-12-31` is stored
|
||||
- All three work centers (`0083AS`, `10595CA`, `1700CB`) are stored in criteria
|
||||
- Search processes data from all three work centers
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P03: Work Centers by Suffix Type (AS)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test AS Work Centers"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work centers with AS suffix: 0083AS, 0278AS, 0424AS, 0586AS, 0696AS, 1010AS, 1011AS
|
||||
7. Verify all work centers appear in the selected list
|
||||
8. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 7 AS-suffix work centers are stored
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P04: Work Centers by Suffix Type (CA)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test CA Work Centers"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add work centers with CA suffix: 10595CA, 11275CA, 11350CA, 11355CA, 13316CA, 14305CA, 15660CA, 200038CA, 200039CA, 200041CA, 200042CA
|
||||
7. Verify all work centers appear in the selected list
|
||||
8. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 11 CA-suffix work centers are stored
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P05: All Work Centers Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test All Work Centers"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-06-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add all 20 work centers from the test data list
|
||||
7. Verify all work centers appear in the selected list
|
||||
8. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 20 work centers are stored in the search criteria
|
||||
- Search processes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P06: Minimum Date Range (Same Day)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test WC Same Day Range"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-07-15`
|
||||
5. Set maximum date to `2019-07-15`
|
||||
6. Add work center `10595CA`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Date range covers single day `2019-07-15`
|
||||
- Search executes and returns results for that specific day
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P07: Boundary Date - Start of Data 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: "Test WC Start Boundary"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `1905-01-20` (earliest date in database)
|
||||
5. Set maximum date to `1905-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search accepts the early date boundary
|
||||
- Search may return no results if no data exists for this early period
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P08: Boundary Date - End of Data 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: "Test WC End Boundary"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2020-08-01`
|
||||
5. Set maximum date to `2020-09-01` (latest date in database)
|
||||
6. Add work center `11275CA`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search processes up to the maximum available date
|
||||
- Results include data through September 1, 2020
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P09: Historical Date Range Search
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test WC Historical Search"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add work center `14305CA`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search covers 2-year historical period
|
||||
- Search executes successfully
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P10: Work Center Remove and Re-add
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test WC Remove Re-add"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Add work center `0278AS`
|
||||
8. Remove work center `0083AS` from the list
|
||||
9. Verify only `0278AS` remains
|
||||
10. Add work center `0424AS`
|
||||
11. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Only work centers `0278AS` and `0424AS` are stored
|
||||
- Work center `0083AS` is NOT included
|
||||
|
||||
---
|
||||
|
||||
### TC-040-P11: Work Center with No Suffix (200039)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test WC No Suffix"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `200039` (no suffix)
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Work center `200039` is stored correctly
|
||||
- Search distinguishes between `200039` and `200039CA`
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-040-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 field empty
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating search name is required
|
||||
- Search is NOT created
|
||||
- User remains on Submit Search page
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N02: No Search Type Selected
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test No Type"
|
||||
3. Do NOT select any search type
|
||||
4. Attempt to set dates and add work centers (if possible)
|
||||
5. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating search type is required
|
||||
- Search is NOT created
|
||||
- Date and work center fields may be disabled until search type is selected
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N03: 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: "Test WC Missing Min Date"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Leave minimum date field empty
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating minimum date is required
|
||||
- Search is NOT created
|
||||
- Minimum date field is highlighted as invalid
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N04: 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: "Test WC Missing Max Date"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Leave maximum date field empty
|
||||
6. Add work center `0083AS`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating maximum date is required
|
||||
- Search is NOT created
|
||||
- Maximum date field is highlighted as invalid
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N05: Empty Work Center List
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Empty Work Centers"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Do NOT add any work centers
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating at least one work center is required
|
||||
- Search is NOT created
|
||||
- Work center section is highlighted as requiring input
|
||||
|
||||
---
|
||||
|
||||
### TC-040-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: "Test WC Invalid Date Range"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-12-31`
|
||||
5. Set maximum date to `2019-01-01` (before min date)
|
||||
6. Add work center `0083AS`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed indicating minimum date must be before or equal to maximum date
|
||||
- Search is NOT created
|
||||
- Date fields are highlighted as invalid
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N07: Invalid Work Center Code
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test Invalid WC Code"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Enter invalid work center: "INVALIDWC"
|
||||
7. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid work center code OR
|
||||
- System shows no matching work centers in autocomplete
|
||||
- Invalid code is NOT added to the list
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N08: Future 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: "Test WC Future Dates"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2025-01-01`
|
||||
5. Set maximum date to `2025-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Click Submit Search
|
||||
|
||||
**Expected Results:**
|
||||
- System may accept future dates (no data exists) OR
|
||||
- Validation warning about future dates
|
||||
- If accepted, search returns no results
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N09: 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: "Test WC Invalid Date Format"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Attempt to enter invalid date format: "31-12-2019" or "2019/13/45"
|
||||
5. Observe system behavior
|
||||
|
||||
**Expected Results:**
|
||||
- Date picker prevents invalid date entry OR
|
||||
- Validation error is displayed for invalid date format
|
||||
- User must enter valid date in correct format
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N10: Work Center with Special Characters
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test WC Special Chars"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set valid date range
|
||||
5. Enter work center with special characters: "0083AS!@#"
|
||||
6. Click Add
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed for invalid characters
|
||||
- Work center with special characters is NOT added
|
||||
- User is prompted to enter valid work center code
|
||||
|
||||
---
|
||||
|
||||
### TC-040-N11: Duplicate Work Center Entry
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test WC Duplicate"
|
||||
3. Select "Time Span + Work Center" search type (Type 40)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add work center `0083AS`
|
||||
7. Attempt to add work center `0083AS` again
|
||||
8. Observe system behavior
|
||||
|
||||
**Expected Results:**
|
||||
- System prevents duplicate work center entry OR displays validation message
|
||||
- Work center `0083AS` appears only once in the list
|
||||
- User can proceed to submit with single entry
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Work center data was extracted from `WorkOrderStep_Hist` table
|
||||
- Work center codes have various formats: numeric with suffix (AS, CA, CB) or numeric only
|
||||
- Work centers represent physical locations or stations in the manufacturing process
|
||||
- The search returns all work orders that passed through the specified work centers within the date range
|
||||
- Some work centers may have variations (e.g., 200039 vs 200039CA) - ensure proper distinction
|
||||
@@ -0,0 +1,387 @@
|
||||
# Search Type 50: Time Span + Operator - Test Scripts
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Search Type 50 (Time Span + Operator). This search type allows users to find work orders within a specified date range that were processed by specific operators.
|
||||
|
||||
**Filters Enabled:**
|
||||
- Timespan (Min Date, Max Date)
|
||||
- Operator
|
||||
|
||||
---
|
||||
|
||||
## 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`
|
||||
|
||||
### 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-050-P01: Single Operator with Valid 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: "Type50 Single Operator Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add operator `ADAMSSN`
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in search list with correct name
|
||||
- Search criteria shows: Date range 2019-01-01 to 2019-12-31, Operator ADAMSSN
|
||||
|
||||
---
|
||||
|
||||
### TC-050-P02: Multiple Operators with Valid 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: "Type50 Multiple Operators Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add operator `ADAMSSN`
|
||||
7. Add operator `AGNEWA`
|
||||
8. Add operator `ALEXIUCG`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in search list with correct name
|
||||
- Search criteria shows all three operators
|
||||
|
||||
---
|
||||
|
||||
### TC-050-P03: Recent Date Range 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: "Type50 Recent Date Range Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add operator `APONTEVE`
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in search list
|
||||
|
||||
---
|
||||
|
||||
### TC-050-P04: Historical Date Range 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: "Type50 Historical Range Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add operator `BACKL`
|
||||
7. Add operator `BAIZEJ`
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria correctly captures historical date range and both operators
|
||||
|
||||
---
|
||||
|
||||
### TC-050-P05: 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: "Type50 Same Day Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2019-06-15`
|
||||
5. Set maximum date to `2019-06-15`
|
||||
6. Add operator `ALLENHY`
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search accepts same-day date range
|
||||
|
||||
---
|
||||
|
||||
### TC-050-P06: Maximum Number of 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: "Type50 Many Operators Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add operators: ADAMSSN, AGNEWA, AGNEWL, ALASMARB, ALEXIUCG, ALLENHY, ALLENNI, ALURUM, ALVESM1, APONTEVE
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 10 operators are captured in search criteria
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-050-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 + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add operator `ADAMSSN`
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates search name is required
|
||||
|
||||
---
|
||||
|
||||
### TC-050-N02: 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: "Type50 Missing Operator Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Do not add any operators
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates at least one operator is required
|
||||
|
||||
---
|
||||
|
||||
### TC-050-N03: 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: "Type50 Missing Min Date Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Leave minimum date empty
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add operator `ADAMSSN`
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates minimum date is required
|
||||
|
||||
---
|
||||
|
||||
### TC-050-N04: 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: "Type50 Missing Max Date Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Leave maximum date empty
|
||||
6. Add operator `ADAMSSN`
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates maximum date is required
|
||||
|
||||
---
|
||||
|
||||
### TC-050-N05: 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: "Type50 Invalid Date Range Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2019-01-01`
|
||||
6. Add operator `ADAMSSN`
|
||||
7. 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-050-N06: 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: "Type50 Invalid Date Format Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Attempt to enter `13/45/2019` as minimum date
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add operator `ADAMSSN`
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Date field rejects invalid format
|
||||
- Form validation error is displayed if invalid date is accepted
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-050-N07: 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: "Type50 Empty Operator Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Attempt to add empty string as operator
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Empty operator value is rejected
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-050-N08: 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 + Operator" search type (Type 50)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add operator `ADAMSSN`
|
||||
7. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates valid search name is required
|
||||
|
||||
---
|
||||
|
||||
### TC-050-N09: 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: "Type50 No Filters Test"
|
||||
3. Select "Time Span + Operator" search type (Type 50)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Do not add any operators
|
||||
7. 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, and operator
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Operators are user IDs from the JdeUser/WorkOrderRouting tables
|
||||
- Date range searches against work order completion dates
|
||||
- Multiple operators result in OR condition (matches any of the specified operators)
|
||||
@@ -0,0 +1,503 @@
|
||||
# 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
|
||||
@@ -0,0 +1,634 @@
|
||||
# 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
|
||||
@@ -0,0 +1,814 @@
|
||||
# Search Type 80: Time Span + Profit Center + Work Order + Item/Operation/MIS - Test Scripts
|
||||
|
||||
## Overview
|
||||
|
||||
Test scripts for Search Type 80 (Time Span + Profit Center + Work Order + Item/Operation/MIS). This is the most comprehensive search type, allowing users to find work orders within a specified date range, filtered by profit center, specific work order numbers, and part operations (Item Number, Operation Number, MIS Number, and MIS Revision).
|
||||
|
||||
**Filters Enabled:**
|
||||
- Timespan (Min Date, Max Date)
|
||||
- Profit Center
|
||||
- Work Order
|
||||
- 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 |
|
||||
|
||||
### Work Orders
|
||||
|
||||
| WorkOrderNumber | ItemNumber |
|
||||
|-----------------|------------|
|
||||
| 99059700 | 00598004702 |
|
||||
| 99002260 | 82070000028 |
|
||||
| 99002259 | 82070000027 |
|
||||
| 99002258 | 82070000019 |
|
||||
| 99002257 | 82070000018 |
|
||||
| 99002256 | 82070000017 |
|
||||
| 99002255 | 00855140333 |
|
||||
| 99002254 | 00855480834 |
|
||||
| 99002252 | 82070000016 |
|
||||
| 99002251 | 00855910448 |
|
||||
| 99002250 | 82070000015 |
|
||||
| 99002249 | 00855480834 |
|
||||
| 99002248 | 00855910446 |
|
||||
| 99002247 | 00855910447 |
|
||||
| 99002246 | 82900171601 |
|
||||
|
||||
### 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-080-P01: Single Value for All 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: "Type80 Single Values Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in search list with correct name
|
||||
- Search criteria shows all filter values correctly
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P02: Multiple Profit Centers with Single Work Order and 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: "Type80 Multiple PC Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit centers: `1AM`, `1BM`, `1CM`
|
||||
7. Add work order `99002259`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-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 all three profit centers
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P03: Single Profit Center with Multiple Work Orders
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Type80 Multiple WO Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1PM`
|
||||
7. Add work orders: `99002258`, `99002257`, `99002256`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-013-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria shows all three work orders
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P04: Single Profit Center and Work Order 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: "Type80 Multiple Part Ops Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `2DM`
|
||||
7. Add work order `99002255`
|
||||
8. Add part operation 1:
|
||||
- Item: `00-5952-013-02`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Add part operation 2:
|
||||
- Item: `00-5952-013-05`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria shows both part operations
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P05: Multiple Values for All Filter Types
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Type80 All Multiple Values Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
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 work orders: `99002254`, `99002252`, `99002251`
|
||||
8. Add part operation 1:
|
||||
- Item: `00-5952-013-06`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Add part operation 2:
|
||||
- Item: `00-5952-014-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
10. Add part operation 3:
|
||||
- Item: `00-5952-014-02`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
11. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria shows all profit centers, work orders, and part operations
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P06: 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: "Type80 Recent Range Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `4IM`
|
||||
7. Add work order `99002250`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-014-05`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Date range correctly captured
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P07: 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: "Type80 Historical Range Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add profit center `5SM`
|
||||
7. Add work order `99002249`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-014-06`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Historical date range correctly captured
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P08: 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: "Type80 Same Day Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2019-06-15`
|
||||
5. Set maximum date to `2019-06-15`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002248`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Same-day date range is accepted
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P09: 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: "Type80 All Profit Centers Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
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 work order `99002247`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 9 profit centers are captured in search criteria
|
||||
|
||||
---
|
||||
|
||||
### TC-080-P10: Maximum Work Orders
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Type80 Many Work Orders Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work orders: 99059700, 99002260, 99002259, 99002258, 99002257, 99002256, 99002255, 99002254, 99002252, 99002251
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- All 10 work orders are captured in search criteria
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-080-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 + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates search name is required
|
||||
|
||||
---
|
||||
|
||||
### TC-080-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: "Type80 Missing PC Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
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 work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. 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-080-N03: Missing Work Order
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Type80 Missing WO Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Do not add any work orders
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates at least one work order is required
|
||||
|
||||
---
|
||||
|
||||
### TC-080-N04: 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: "Type80 Missing Part Op Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Do not add any part operations
|
||||
9. 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-080-N05: 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: "Type80 Missing Min Date Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Leave minimum date empty
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates minimum date is required
|
||||
|
||||
---
|
||||
|
||||
### TC-080-N06: 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: "Type80 Missing Max Date Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Leave maximum date empty
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates maximum date is required
|
||||
|
||||
---
|
||||
|
||||
### TC-080-N07: 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: "Type80 Invalid Date Range Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2018-01-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. 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-080-N08: 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: "Type80 Missing Item Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation with missing Item:
|
||||
- Item: (empty)
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. 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-080-N09: 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: "Type80 Missing Operation Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation with missing Operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: (empty)
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. 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-080-N10: 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: "Type80 Missing MIS Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation with missing MIS:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: (empty)
|
||||
- Revision: `00`
|
||||
9. 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-080-N11: 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: "Type80 Missing Revision Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation with missing Revision:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: (empty)
|
||||
9. 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-080-N12: 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 + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
- Error message indicates valid search name is required
|
||||
|
||||
---
|
||||
|
||||
### TC-080-N13: 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: "Type80 No Filters Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Do not add any profit centers
|
||||
7. Do not add any work orders
|
||||
8. Do not add any part operations
|
||||
9. 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, work order, and part operation
|
||||
|
||||
---
|
||||
|
||||
### TC-080-N14: 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: "Type80 Invalid Date Format Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Attempt to enter `99/99/9999` as minimum date
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Date field rejects invalid format
|
||||
- Form validation error is displayed if invalid date is accepted
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-080-N15: Empty Work Order 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: "Type80 Empty WO Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Attempt to add empty string as work order
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Empty work order value is rejected
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
### TC-080-N16: 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: "Type80 Empty PC Test"
|
||||
3. Select "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (Type 80)
|
||||
4. Set minimum date to `2018-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Attempt to add empty string as profit center
|
||||
7. Add work order `99002260`
|
||||
8. Add part operation:
|
||||
- Item: `00-5952-012-01`
|
||||
- Operation: `505`
|
||||
- MIS: `26-1002-003-00`
|
||||
- Revision: `00`
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Empty profit center value is rejected
|
||||
- Form validation error is displayed
|
||||
- Search is not created
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Type 80 is the most comprehensive search type with four filter categories
|
||||
- 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 values within each filter type result in OR conditions
|
||||
- Combined filters use AND logic between filter types (profit center AND work order AND part operation)
|
||||
- Work order numbers are from the WorkOrder_Hist table
|
||||
- MIS data comes from the MisData_Hist table
|
||||
@@ -0,0 +1,314 @@
|
||||
# Search Type 90: Time Span + Profit Center + Extract MIS
|
||||
|
||||
## Overview
|
||||
|
||||
Search Type 90 allows users to search by a date range combined with profit center(s) and the Extract MIS boolean flag. When Extract MIS is enabled, the search extracts MIS (Manufacturing Information System) data associated with work orders in the specified profit center(s) and time range.
|
||||
|
||||
### Filters Enabled
|
||||
|
||||
| Filter | Description | Required |
|
||||
|--------|-------------|----------|
|
||||
| Timespan | Date range (Min Date to Max Date) | Yes |
|
||||
| Profit Center | One or more profit center codes | Yes |
|
||||
| Extract MIS | Boolean flag to extract MIS data | Yes |
|
||||
|
||||
---
|
||||
|
||||
## 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
|
||||
|
||||
| Code |
|
||||
|------|
|
||||
| 1AM |
|
||||
| 1BM |
|
||||
| 1CM |
|
||||
| 1PM |
|
||||
| 2DM |
|
||||
| 2SM |
|
||||
| 3TM |
|
||||
| 4IM |
|
||||
| 5SM |
|
||||
|
||||
### Extract MIS Values
|
||||
|
||||
| Value | Description |
|
||||
|-------|-------------|
|
||||
| true | Extract MIS data for matching work orders |
|
||||
| false | Do not extract MIS data |
|
||||
|
||||
---
|
||||
|
||||
## Positive Test Cases
|
||||
|
||||
### TC-090-P01: Single Profit Center with Extract MIS Enabled
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 090-P01 Single PC Extract MIS"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1PM`
|
||||
7. Enable Extract MIS checkbox (set to true)
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the user's search list
|
||||
- Search criteria shows: Date range 2020-01-01 to 2020-09-01, Profit Center: 1PM, Extract MIS: true
|
||||
|
||||
---
|
||||
|
||||
### TC-090-P02: Multiple Profit Centers with Extract MIS Enabled
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 090-P02 Multiple PC Extract MIS"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
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. Enable Extract MIS checkbox (set to true)
|
||||
10. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the user's search list
|
||||
- Search criteria shows all three profit centers (1AM, 1BM, 1CM) and Extract MIS: true
|
||||
|
||||
---
|
||||
|
||||
### TC-090-P03: Single Profit Center with Extract MIS Disabled
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 090-P03 Single PC No Extract MIS"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
4. Set minimum date to `2019-01-01`
|
||||
5. Set maximum date to `2019-12-31`
|
||||
6. Add profit center `2DM`
|
||||
7. Disable Extract MIS checkbox (set to false)
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search appears in the user's search list
|
||||
- Search criteria shows: Date range 2019-01-01 to 2019-12-31, Profit Center: 2DM, Extract MIS: false
|
||||
|
||||
---
|
||||
|
||||
### TC-090-P04: Historical Date Range with Multiple 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: "Test 090-P04 Historical Multi PC"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
4. Set minimum date to `2016-01-01`
|
||||
5. Set maximum date to `2017-12-31`
|
||||
6. Add profit center `3TM`
|
||||
7. Add profit center `4IM`
|
||||
8. Enable Extract MIS checkbox (set to true)
|
||||
9. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria reflects the historical date range and both profit centers
|
||||
|
||||
---
|
||||
|
||||
### TC-090-P05: All Available 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: "Test 090-P05 All Profit Centers"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
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. Enable Extract MIS checkbox (set to true)
|
||||
8. Click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Search is created with status "Queued"
|
||||
- Search criteria includes all nine profit centers
|
||||
|
||||
---
|
||||
|
||||
## Negative Test Cases
|
||||
|
||||
### TC-090-N01: Missing Required 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: "Test 090-N01 Missing Dates"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
4. Leave minimum date empty
|
||||
5. Leave maximum date empty
|
||||
6. Add profit center `1PM`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates date range is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-090-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: "Test 090-N02 Missing Profit Center"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Do NOT add any profit center (leave empty)
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Submit button is disabled OR validation error is displayed
|
||||
- Error message indicates at least one profit center is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-090-N03: Invalid Date Range (End Before Start)
|
||||
|
||||
**Preconditions:**
|
||||
- User is logged in
|
||||
- User has access to the Submit Search page
|
||||
|
||||
**Steps:**
|
||||
1. Navigate to Submit Search page
|
||||
2. Enter search name: "Test 090-N03 Invalid Date Range"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
4. Set minimum date to `2020-09-01`
|
||||
5. Set maximum date to `2020-01-01` (before minimum date)
|
||||
6. Add profit center `1PM`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates maximum date must be after minimum date
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-090-N04: Missing Minimum 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: "Test 090-N04 Missing Min Date"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
4. Leave minimum date empty
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1AM`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates minimum date is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-090-N05: Missing Maximum 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: "Test 090-N05 Missing Max Date"
|
||||
3. Select "Time Span + Profit Center + Extract MIS" search type (Type 90)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Leave maximum date empty
|
||||
6. Add profit center `1BM`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates maximum date is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
### TC-090-N06: 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 + Extract MIS" search type (Type 90)
|
||||
4. Set minimum date to `2020-01-01`
|
||||
5. Set maximum date to `2020-09-01`
|
||||
6. Add profit center `1PM`
|
||||
7. Enable Extract MIS checkbox
|
||||
8. Attempt to click Submit button
|
||||
|
||||
**Expected Results:**
|
||||
- Validation error is displayed
|
||||
- Error message indicates search name is required
|
||||
- Search is NOT created
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- Data was extracted from `WorkOrder_Hist` table
|
||||
- MIS data from `MisData_Hist` table
|
||||
- The Extract MIS flag determines whether MIS data is included in search results
|
||||
- Profit centers correspond to branch codes in the JDE system
|
||||
@@ -0,0 +1,165 @@
|
||||
# Search Page Test Scripts
|
||||
|
||||
Test scripts for the Submit Search page functionality. Each file covers a specific search type with positive and negative test cases.
|
||||
|
||||
---
|
||||
|
||||
## Environment Setup
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- .NET 10 SDK installed
|
||||
- Docker running (for SQL Server database)
|
||||
- Database container started (see `db_info.md`)
|
||||
|
||||
### Build the Solution
|
||||
|
||||
```bash
|
||||
# From project root
|
||||
dotnet build NEW/JdeScoping.slnx
|
||||
```
|
||||
|
||||
### Start the Host (Application Server)
|
||||
|
||||
```bash
|
||||
# Start in foreground (Ctrl+C to stop)
|
||||
dotnet run --project NEW/src/JdeScoping.Host/JdeScoping.Host.csproj
|
||||
|
||||
# Or start with specific profile
|
||||
dotnet run --project NEW/src/JdeScoping.Host/JdeScoping.Host.csproj --launch-profile https
|
||||
```
|
||||
|
||||
**Application URLs:**
|
||||
- HTTP: http://localhost:5294
|
||||
- HTTPS: https://localhost:7159
|
||||
|
||||
### Stop the Host
|
||||
|
||||
- **Foreground**: Press `Ctrl+C` in the terminal running the host
|
||||
- **Background process**: Find and kill the process:
|
||||
```bash
|
||||
# Find the process
|
||||
lsof -i :5294
|
||||
|
||||
# Kill by PID
|
||||
kill <PID>
|
||||
```
|
||||
|
||||
### Restart the Host
|
||||
|
||||
```bash
|
||||
# Stop (Ctrl+C) then start again
|
||||
dotnet run --project NEW/src/JdeScoping.Host/JdeScoping.Host.csproj
|
||||
```
|
||||
|
||||
### Verify Host is Running
|
||||
|
||||
```bash
|
||||
# Check if port is in use
|
||||
lsof -i :5294
|
||||
|
||||
# Or curl the health endpoint
|
||||
curl http://localhost:5294/health
|
||||
```
|
||||
|
||||
### Start Database (if not running)
|
||||
|
||||
```bash
|
||||
docker start scopingtool-sqlserver
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Common Tasks
|
||||
|
||||
### CT-01: Log In to Application
|
||||
|
||||
1. Navigate to the application URL
|
||||
2. Enter valid username in the Username field
|
||||
3. Enter valid password in the Password field
|
||||
4. Click the "Login" button
|
||||
5. **Expected**: User is redirected to the home page, navigation menu is visible
|
||||
|
||||
### CT-02: Navigate to Submit Search Page
|
||||
|
||||
**Precondition**: User is logged in (CT-01)
|
||||
|
||||
1. Click "Submit Search" in the navigation menu
|
||||
2. **Expected**: Submit Search page loads with empty form
|
||||
|
||||
### CT-03: Log Out of Application
|
||||
|
||||
**Precondition**: User is logged in (CT-01)
|
||||
|
||||
1. Click the user menu in the top right corner
|
||||
2. Click "Logout"
|
||||
3. **Expected**: User is redirected to login page, session is ended
|
||||
|
||||
### CT-04: Navigate to Search Results Page
|
||||
|
||||
**Precondition**: User is logged in (CT-01)
|
||||
|
||||
1. Click "Search Results" in the navigation menu
|
||||
2. **Expected**: Search Results page loads showing list of submitted searches
|
||||
|
||||
### CT-05: Verify Search in Results List
|
||||
|
||||
**Precondition**: User is on Search Results page (CT-04)
|
||||
|
||||
1. Locate the search by name in the results list
|
||||
2. Verify the Status column shows expected status (Queued, Processing, Complete, Error)
|
||||
3. Verify the Submit Date column shows current date/time
|
||||
4. **Expected**: Search appears in list with correct details
|
||||
|
||||
### CT-06: Clear Search Form
|
||||
|
||||
**Precondition**: User is on Submit Search page (CT-02)
|
||||
|
||||
1. Click the "Clear" or "Reset" button
|
||||
2. **Expected**: All form fields are cleared, search type is deselected
|
||||
|
||||
---
|
||||
|
||||
## Test Files
|
||||
|
||||
| File | ID | Search Type | Required Filters |
|
||||
|------|-----|-------------|------------------|
|
||||
| [10_WorkOrder.md](10_WorkOrder.md) | 10 | Work Order | Work Order |
|
||||
| [20_ComponentLot.md](20_ComponentLot.md) | 20 | Component Lot | Component Lot |
|
||||
| [30_TimeSpan_ProfitCenter.md](30_TimeSpan_ProfitCenter.md) | 30 | Time Span + Profit Center | Dates, Profit Center |
|
||||
| [40_TimeSpan_WorkCenter.md](40_TimeSpan_WorkCenter.md) | 40 | Time Span + Work Center | Dates, Work Center |
|
||||
| [50_TimeSpan_Operator.md](50_TimeSpan_Operator.md) | 50 | Time Span + Operator | Dates, Operator |
|
||||
| [60_TimeSpan_ProfitCenter_ItemNumber.md](60_TimeSpan_ProfitCenter_ItemNumber.md) | 60 | Time Span + Profit Center + Item | Dates, Profit Center, Item |
|
||||
| [70_TimeSpan_ProfitCenter_ItemOperationMIS.md](70_TimeSpan_ProfitCenter_ItemOperationMIS.md) | 70 | Time Span + Profit Center + Item/Op/MIS | Dates, Profit Center, Part Operation |
|
||||
| [80_TimeSpan_ProfitCenter_WorkOrder_ItemOperationMIS.md](80_TimeSpan_ProfitCenter_WorkOrder_ItemOperationMIS.md) | 80 | Time Span + Profit Center + Work Order + Item/Op/MIS | Dates, Profit Center, Work Order, Part Operation |
|
||||
| [90_TimeSpan_ProfitCenter_ExtractMIS.md](90_TimeSpan_ProfitCenter_ExtractMIS.md) | 90 | Time Span + Profit Center + Extract MIS | Dates, Profit Center, Extract MIS |
|
||||
| [100_TimeSpan_WorkCenter_ItemNumber.md](100_TimeSpan_WorkCenter_ItemNumber.md) | 100 | Time Span + Work Center + Item | Dates, Work Center, Item |
|
||||
| [110_TimeSpan_WorkCenter_ExtractMIS.md](110_TimeSpan_WorkCenter_ExtractMIS.md) | 110 | Time Span + Work Center + Extract MIS | Dates, Work Center, Extract MIS |
|
||||
| [120_TimeSpan_WorkCenter_ItemOperationMIS.md](120_TimeSpan_WorkCenter_ItemOperationMIS.md) | 120 | Time Span + Work Center + Item/Op/MIS | Dates, Work Center, Part Operation |
|
||||
| [130_TimeSpan_WorkCenter_WorkOrder_ItemOperationMIS.md](130_TimeSpan_WorkCenter_WorkOrder_ItemOperationMIS.md) | 130 | Time Span + Work Center + Work Order + Item/Op/MIS | Dates, Work Center, Work Order, Part Operation |
|
||||
| [140_TimeSpan_ItemNumber.md](140_TimeSpan_ItemNumber.md) | 140 | Time Span + Item | Dates, Item |
|
||||
| [150_TimeSpan_WorkCenter_Operator.md](150_TimeSpan_WorkCenter_Operator.md) | 150 | Time Span + Work Center + Operator | Dates, Work Center, Operator |
|
||||
| [160_TimeSpan_ProfitCenter_Operator.md](160_TimeSpan_ProfitCenter_Operator.md) | 160 | Time Span + Profit Center + Operator | Dates, Profit Center, Operator |
|
||||
|
||||
## Test Case Structure
|
||||
|
||||
Each file contains:
|
||||
|
||||
- **Overview**: Search type description and enabled filters
|
||||
- **Valid Test Data**: Sample data from dev database for testing
|
||||
- **Positive Test Cases** (TC-XXX-P01, P02...): Valid scenarios that should succeed
|
||||
- **Negative Test Cases** (TC-XXX-N01, N02...): Invalid scenarios that should show errors
|
||||
|
||||
### Referencing Common Tasks
|
||||
|
||||
Test cases reference common tasks using the format `(See CT-XX)`. For example:
|
||||
|
||||
> **Preconditions:**
|
||||
> - User is logged in (See CT-01)
|
||||
> - User is on Submit Search page (See CT-02)
|
||||
|
||||
---
|
||||
|
||||
## Test Data Source
|
||||
|
||||
Test data was extracted from the development database (`ScopingTool` on `localhost:1434`). See `db_info.md` in the project root for connection details.
|
||||
Reference in New Issue
Block a user