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.
12 KiB
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-01to2020-09-01 - Mid-range:
2018-01-01to2019-12-31 - Historical:
2016-01-01to2017-12-31
Profit Centers (Branch Codes)
| Code |
|---|
| 1AM |
| 1BM |
| 1CM |
| 1PM |
| 2DM |
| 2SM |
| 3TM |
| 4IM |
| 5SM |
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:
- Navigate to Submit Search page
- Enter search name: "Test Single Profit Center"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2020-01-01 - Set maximum date to
2020-09-01 - Enter profit center
1AMin the profit center input field - Click Add to add the profit center to the list
- Verify the profit center appears in the selected profit centers list
- 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-01to2020-09-01is stored in criteria - Profit center
1AMis 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:
- Navigate to Submit Search page
- Enter search name: "Test Multiple Profit Centers"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Enter profit center
1AMand click Add - Enter profit center
1PMand click Add - Enter profit center
2DMand click Add - Verify all three profit centers appear in the selected list
- Click Submit Search
Expected Results:
- Search is created with status "Queued"
- Date range
2019-01-01to2019-12-31is 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:
- Navigate to Submit Search page
- Enter search name: "Test All Profit Centers"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2018-01-01 - Set maximum date to
2018-12-31 - Add all profit centers: 1AM, 1BM, 1CM, 1PM, 2DM, 2SM, 3TM, 4IM, 5SM
- Verify all profit centers appear in the selected list
- 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:
- Navigate to Submit Search page
- Enter search name: "Test Same Day Range"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2020-06-15 - Set maximum date to
2020-06-15 - Add profit center
1PM - 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:
- Navigate to Submit Search page
- Enter search name: "Test Start Boundary"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
1905-01-20(earliest date in database) - Set maximum date to
1905-12-31 - Add profit center
1AM - 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:
- Navigate to Submit Search page
- Enter search name: "Test End Boundary"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2020-08-01 - Set maximum date to
2020-09-01(latest date in database) - Add profit center
1CM - 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:
- Navigate to Submit Search page
- Enter search name: "Test Historical Search"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2016-01-01 - Set maximum date to
2017-12-31 - Add profit center
2SM - 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:
- Navigate to Submit Search page
- Enter search name: "Test PC Remove Re-add"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2019-01-01 - Set maximum date to
2019-12-31 - Add profit center
1AM - Add profit center
1BM - Remove profit center
1AMfrom the list - Verify only
1BMremains - Add profit center
1CM - Click Submit Search
Expected Results:
- Search is created with status "Queued"
- Only profit centers
1BMand1CMare stored - Profit center
1AMis 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:
- Navigate to Submit Search page
- Leave search name field empty
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2020-01-01 - Set maximum date to
2020-09-01 - Add profit center
1AM - 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:
- Navigate to Submit Search page
- Enter search name: "Test No Type"
- Do NOT select any search type
- Attempt to set dates and add profit centers (if possible)
- 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:
- Navigate to Submit Search page
- Enter search name: "Test Missing Min Date"
- Select "Time Span + Profit Center" search type (Type 30)
- Leave minimum date field empty
- Set maximum date to
2020-09-01 - Add profit center
1AM - 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:
- Navigate to Submit Search page
- Enter search name: "Test Missing Max Date"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2020-01-01 - Leave maximum date field empty
- Add profit center
1AM - 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:
- Navigate to Submit Search page
- Enter search name: "Test Empty Profit Centers"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2020-01-01 - Set maximum date to
2020-09-01 - Do NOT add any profit centers
- 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:
- Navigate to Submit Search page
- Enter search name: "Test Invalid Date Range"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2020-09-01 - Set maximum date to
2020-01-01(before min date) - Add profit center
1AM - 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:
- Navigate to Submit Search page
- Enter search name: "Test Invalid PC Code"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2020-01-01 - Set maximum date to
2020-09-01 - Enter invalid profit center: "INVALID"
- 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:
- Navigate to Submit Search page
- Enter search name: "Test Future Dates"
- Select "Time Span + Profit Center" search type (Type 30)
- Set minimum date to
2025-01-01 - Set maximum date to
2025-12-31 - Add profit center
1AM - 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:
- Navigate to Submit Search page
- Enter search name: "Test Invalid Date Format"
- Select "Time Span + Profit Center" search type (Type 30)
- Attempt to enter invalid date format: "31-12-2020" or "2020/13/45"
- 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:
- Navigate to Submit Search page
- Enter search name: "Test PC Special Chars"
- Select "Time Span + Profit Center" search type (Type 30)
- Set valid date range
- Enter profit center with special characters: "1AM!@#"
- 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