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,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
|
||||
Reference in New Issue
Block a user