Skip to main content

Calendar & Scheduling Management - Test Cases (ONB02US04)

Calendar & Scheduling Management - Test Cases (ONB02US04)


Test Scenario Analysis

A. Functional Test Scenarios

Core Functionality:

  1. Holiday Calendar Management
  2. Working Days Schedule Configuration
  3. Holiday Import and Manual Addition
  4. Working Hours Time Configuration
  5. Calendar Visualization and Navigation

Business Rules Coverage:

  1. Holiday type validation (Federal, Company, Observed)
  2. Date selection and holiday creation
  3. Working hours time validation (00:00 - 23:59)
  4. Duplicate holiday prevention
  5. Save/Cancel operations
  6. User role-based access control

User Journeys:

  1. Utility Administrator holiday management workflow
  2. System Admin working hours configuration workflow
  3. Calendar navigation and holiday viewing
  4. Quick time preset utilization

B. Non-Functional Test Scenarios

Performance:

  • Page load times < 3 seconds
  • Calendar rendering performance
  • Save operation response times < 500ms

Security:

  • Role-based access validation
  • Session management
  • Data protection for utility configurations

Compatibility:

  • Chrome Latest browser support
  • Desktop resolutions (1920x1080+)
  • System-wide timezone handling

Usability:

  • Intuitive calendar navigation
  • Clear holiday type distinctions
  • Working hours slider functionality

Reliability:

  • Network interruption handling
  • Data persistence validation
  • System stability during concurrent usage

C. Edge Case & Error Scenarios

Boundary Conditions:

  • Maximum/minimum working hours (00:00 - 23:59)
  • Calendar date range limits
  • Holiday name character limits

Invalid Inputs:

  • Malformed holiday names
  • Invalid time formats
  • Unauthorized access attempts

System Failures:

  • Network interruptions during save
  • Session timeout scenarios
  • Browser refresh during operations




Test Case Details

Test Case 1: Holiday Calendar Access and Navigation

Test Case ID: ONB02US04_TC_001
Title: Verify Holiday Calendar page access and basic navigation
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Holiday Calendar
Test Type: Functional/UI
Test Level: System
Priority: P1-Critical
Execution Phase: Smoke
Automation Status: Manual

Enhanced Tags for 17 Reports Support

Tags: MOD-Calendar, P1-Critical, Phase-Smoke, Type-Functional, Platform-Web, Report-Engineering, Customer-Enterprise, Risk-Low, Business-Critical, Revenue-Impact-Medium, Integration-Standalone

Business Context

Customer_Segment: Enterprise
Revenue_Impact: Medium
Business_Priority: Must-Have
Customer_Journey: Daily-Usage
Compliance_Required: No
SLA_Related: Yes

Quality Metrics

Risk_Level: Low
Complexity_Level: Low
Expected_Execution_Time: 3 minutes
Reproducibility_Score: High
Data_Sensitivity: Low
Failure_Impact: High

Coverage Tracking

Feature_Coverage: 20%
Integration_Points: Calendar UI, Navigation
Code_Module_Mapped: CalendarModule, NavigationModule
Requirement_Coverage: Complete
Cross_Platform_Support: Web

Stakeholder Reporting

Primary_Stakeholder: Engineering
Report_Categories: Quality-Dashboard, Module-Coverage
Trend_Tracking: Yes
Executive_Visibility: No
Customer_Impact_Level: High

Requirements Traceability

Test Environment

Environment: Staging
Browser/Version: Chrome Latest
Device/OS: Windows 10/11
Screen_Resolution: Desktop-1920x1080
Dependencies: Smart360 application, User authentication
Performance_Baseline: < 3 seconds page load
Data_Requirements: Valid utility organization setup

Prerequisites

Setup_Requirements: User logged into Smart360 system
User_Roles_Permissions: Utility Administrator access
Test_Data: Metropolis Water District utility organization
Prior_Test_Cases: User authentication successful

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Smart360 application

Application loads successfully

URL: preview-8a07d9ed--smartsetup-guide-23.lovable.app


2

Login with Utility Administrator credentials

User authenticated and dashboard displayed

Username: admin@metropolis.com, Password: ValidPass123


3

Click on "Holidays" from left navigation menu

Holiday Calendar page loads within 3 seconds



4

Verify page title displays "Calendar & Scheduling"

Page title visible and correct

Expected: "Calendar & Scheduling"


5

Verify holiday calendar section is visible

Holiday Calendar section displays with current month

Expected: May 2025 calendar visible


6

Click left arrow (<) to navigate to previous month

Calendar navigates to April 2025



7

Click right arrow (>) to navigate to next month

Calendar navigates back to May 2025



8

Verify calendar legend shows holiday types

Three holiday type indicators visible

Expected: Federal Holiday, Company Holiday, Observed Holiday


Verification Points

Primary_Verification: Holiday Calendar page loads and displays correctly
Secondary_Verifications: Navigation controls work, holiday legend visible
Negative_Verification: No error messages displayed, no broken UI elements




Test Case 2: Add New Holiday - Company Holiday Type

Test Case ID: ONB02US04_TC_002
Title: Verify adding a new Company Holiday through calendar interface
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Holiday Management
Test Type: Functional
Test Level: System
Priority: P1-Critical
Execution Phase: Regression
Automation Status: Planned-for-Automation

Enhanced Tags for 17 Reports Support

Tags: MOD-Holiday, P1-Critical, Phase-Regression, Type-Functional, Platform-Web, Report-Product, Customer-Enterprise, Risk-Medium, Business-Critical, Revenue-Impact-High, Integration-End-to-End

Business Context

Customer_Segment: Enterprise
Revenue_Impact: High
Business_Priority: Must-Have
Customer_Journey: Daily-Usage
Compliance_Required: No
SLA_Related: Yes

Quality Metrics

Risk_Level: Medium
Complexity_Level: Medium
Expected_Execution_Time: 5 minutes
Reproducibility_Score: High
Data_Sensitivity: Low
Failure_Impact: Critical

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Holiday Calendar page

Holiday Calendar page displayed


Prerequisites: ONB02US04_TC_001 passed

2

Click on date "May 15, 2025" in calendar

Date highlights and Holiday Details panel opens

Date: 15


3

Verify "No holidays set for this date" message

Message displayed in Holiday Details panel

Expected: "No holidays set for this date"


4

Enter holiday name in "Holiday Name" field

Text entered successfully

Holiday Name: "Company Founders Day"


5

Click Holiday Type dropdown

Dropdown opens with three options

Expected options: Federal Holiday, Company Holiday, Observed Holiday


6

Select "Company Holiday" from dropdown

Company Holiday selected and dropdown closes

Selection: "Company Holiday"


7

Click "Add Holiday" button

Holiday added successfully



8

Verify holiday appears in "May 2025 Holidays" section

Holiday listed with correct type indicator

Expected: "15 May - Company Founders Day - company"


9

Verify calendar date shows visual indicator

Date 15 shows company holiday styling/color



10

Click "Save Changes" button

Changes saved successfully


System should display success confirmation

Verification Points

Primary_Verification: Holiday successfully created and saved with Company type
Secondary_Verifications: Holiday appears in monthly list, calendar visual updated
Negative_Verification: No duplicate holidays created, no error messages




Test Case 3: Import Standard Holidays Functionality

Test Case ID: ONB02US04_TC_003
Title: Verify Import Standard Holidays feature functionality
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Holiday Import
Test Type: Functional
Test Level: System
Priority: P2-High
Execution Phase: Regression
Automation Status: Manual

Enhanced Tags for 17 Reports Support

Tags: MOD-Import, P2-High, Phase-Regression, Type-Functional, Platform-Web, Report-Product, Customer-Enterprise, Risk-Medium, Business-High, Revenue-Impact-Medium, Integration-End-to-End

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Holiday Calendar page

Holiday Calendar page displayed



2

Locate "Import Standard Holidays" button

Button visible and clickable



3

Click "Import Standard Holidays" button

Import dialog or process initiated



4

Verify import confirmation or selection options

Standard holidays import interface displayed


Depends on system design

5

Complete import process

Standard holidays imported successfully



6

Verify imported holidays appear in calendar

Calendar shows imported holidays with appropriate types



7

Check May 2025 Holidays section

Imported holidays listed correctly






Test Case 4: Working Days Schedule Configuration - Monday Setup

Test Case ID: ONB02US04_TC_004
Title: Configure working hours for Monday using slider controls
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Working Days Schedule
Test Type: Functional
Test Level: System
Priority: P1-Critical
Execution Phase: Regression
Automation Status: Planned-for-Automation

Enhanced Tags for 17 Reports Support

Tags: MOD-WorkingHours, P1-Critical, Phase-Regression, Type-Functional, Platform-Web, Report-Engineering, Customer-Enterprise, Risk-Medium, Business-Critical, Revenue-Impact-High, Integration-End-to-End

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Scroll down to "Working Days Schedule" section

Working Days Schedule section visible



2

Click on "Monday" row

Monday working hours configuration opens


Should open Working Hours Settings panel

3

Verify "Working Day" checkbox is checked

Monday marked as working day

Expected: Checkbox checked


4

Verify current start time display

Start time shows current setting

Expected: 9:00 AM


5

Drag "Start Time" slider to 8:00 AM

Start time updates to 8:00 AM

New time: 8:00 AM


6

Verify end time display

End time shows current setting

Expected: 5:00 PM


7

Drag "End Time" slider to 6:00 PM

End time updates to 6:00 PM

New time: 6:00 PM


8

Verify time change reflected in main schedule

Monday shows 8:00 AM - 6:00 PM

Expected: "8:00 AM - 6:00 PM"


9

Click "Save Changes" button

Changes saved successfully






Test Case 5: Quick Time Presets Functionality

Test Case ID: ONB02US04_TC_005
Title: Verify Quick Time Presets application for working hours
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Quick Time Presets
Test Type: Functional
Test Level: System
Priority: P2-High
Execution Phase: Regression
Automation Status: Manual

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Working Days Schedule section

Working Days Schedule visible



2

Click on "Tuesday" from weekdays list

Tuesday configuration opens



3

Locate "Quick Time Presets" section

Four preset buttons visible

Expected: 9AM-5PM, 8AM-4PM, 8AM-6PM, 7AM-3PM


4

Click "8AM - 4PM" preset button

Tuesday hours update to 8:00 AM - 4:00 PM

Preset: 8AM-4PM


5

Verify hours updated in main schedule

Tuesday shows "8:00 AM - 4:00 PM"



6

Click "7AM - 3PM" preset button

Tuesday hours update to 7:00 AM - 3:00 PM

Preset: 7AM-3PM


7

Verify hours updated correctly

Tuesday shows "7:00 AM - 3:00 PM"



8

Click "Save Changes" button

Changes saved successfully






Test Case 6: Weekend Working Status Configuration

Test Case ID: ONB02US04_TC_006
Title: Configure Saturday as working day and Sunday as non-working
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Weekend Configuration
Test Type: Functional
Test Level: System
Priority: P2-High
Execution Phase: Regression
Automation Status: Manual

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Working Days Schedule section

Working Days Schedule displayed



2

Locate Weekend section on right side

Saturday and Sunday options visible



3

Verify Saturday current status

Saturday shows "Non-working" initially

Expected: Non-working status


4

Click on Saturday radio button

Saturday becomes selectable for configuration



5

Configure Saturday working hours

Saturday working hours set

Hours: 9:00 AM - 5:00 PM

Follow similar steps as weekday configuration

6

Verify Sunday remains "Non-working"

Sunday status unchanged

Expected: "Non-working"


7

Click "Save Changes" button

Weekend configuration saved






Test Case 7: Holiday Type Validation and Display

Test Case ID: ONB02US04_TC_007
Title: Verify all three holiday types can be created and display correctly
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Holiday Type Management
Test Type: Functional
Test Level: System
Priority: P1-Critical
Execution Phase: Regression
Automation Status: Planned-for-Automation

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Holiday Calendar page

Holiday Calendar displayed



2

Click on May 20, 2025

Date selected and Holiday Details panel opens

Date: 20


3

Add Federal Holiday

Holiday created with Federal type

Name: "Victoria Day", Type: Federal Holiday


4

Click on May 21, 2025

New date selected

Date: 21


5

Add Company Holiday

Holiday created with Company type

Name: "Team Building Day", Type: Company Holiday


6

Click on May 22, 2025

New date selected

Date: 22


7

Add Observed Holiday

Holiday created with Observed type

Name: "Local Festival", Type: Observed Holiday


8

Verify all holidays in May 2025 list

Three holidays listed with correct type indicators

Expected: Three different type indicators


9

Verify calendar visual distinctions

Each holiday type shows different visual styling


Should have different colors or indicators

10

Save all changes

All holidays saved successfully






Test Case 8: Duplicate Holiday Prevention Validation

Test Case ID: ONB02US04_TC_008
Title: Verify system prevents duplicate holidays on same date
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Data Validation
Test Type: Functional/Negative
Test Level: System
Priority: P2-High
Execution Phase: Regression
Automation Status: Manual

Enhanced Tags for 17 Reports Support

Tags: MOD-Validation, P2-High, Phase-Regression, Type-Negative, Platform-Web, Report-QA, Customer-Enterprise, Risk-High, Business-High, Revenue-Impact-Medium, Integration-End-to-End

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Holiday Calendar page

Holiday Calendar displayed



2

Add first holiday on May 25, 2025

Holiday created successfully

Name: "First Holiday", Type: Company Holiday


3

Click "Add Holiday" and save

Holiday saved successfully



4

Click on same date (May 25, 2025) again

Date selected

Date: 25


5

Attempt to add second holiday

System should prevent duplicate or show warning

Name: "Second Holiday", Type: Federal Holiday


6

Verify system behavior

Appropriate validation message or prevention mechanism

Expected: Error message or prevention


7

Verify original holiday remains

First holiday still exists and unchanged






Test Case 9: Working Hours Time Boundary Validation

Test Case ID: ONB02US04_TC_009
Title: Validate working hours time input boundaries (00:00 - 23:59)
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Time Validation
Test Type: Functional/Boundary
Test Level: System
Priority: P2-High
Execution Phase: Regression
Automation Status: Manual

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Working Days Schedule

Working Days Schedule displayed



2

Click on Wednesday configuration

Wednesday settings opened



3

Set start time to minimum boundary

Start time accepts 00:00 (12:00 AM)

Time: 00:00


4

Set end time to maximum boundary

End time accepts 23:59 (11:59 PM)

Time: 23:59


5

Verify time display updates

Times display correctly in 12-hour format

Expected: 12:00 AM - 11:59 PM


6

Save configuration

Boundary times saved successfully



7

Verify saved times persist

Times remain after page refresh






Test Case 10: Cancel Changes Functionality

Test Case ID: ONB02US04_TC_010
Title: Verify Cancel button discards unsaved changes
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Change Management
Test Type: Functional
Test Level: System
Priority: P3-Medium
Execution Phase: Regression
Automation Status: Manual

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Working Days Schedule

Working Days Schedule displayed



2

Note current Thursday working hours

Record existing configuration

Current: 9:00 AM - 5:00 PM


3

Modify Thursday start time

Start time changed to 7:00 AM

New time: 7:00 AM


4

Modify Thursday end time

End time changed to 4:00 PM

New time: 4:00 PM


5

Click "Cancel" button

Changes discarded



6

Verify Thursday hours reverted

Hours back to original setting

Expected: 9:00 AM - 5:00 PM


7

Refresh page and verify

Original configuration persisted






Test Case 11: Holiday Name Character Limit Validation

Test Case ID: ONB02US04_TC_011
Title: Validate holiday name input field character limitations
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Input Validation
Test Type: Functional/Boundary
Test Level: System
Priority: P3-Medium
Execution Phase: Regression
Automation Status: Manual

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Holiday Calendar

Holiday Calendar displayed



2

Click on available date

Holiday Details panel opens

Date: May 30, 2025


3

Enter very long holiday name

System handles long input appropriately

Name: "Very Long Holiday Name That Exceeds Normal Expectations And Tests Character Limits For Input Field Validation Testing Purposes"

150+ characters

4

Attempt to add holiday

System validates input length



5

Test empty holiday name

System requires holiday name

Name: "" (empty)


6

Verify validation behavior

Appropriate error messages displayed






Test Case 12: Role-Based Access Control - System Admin

Test Case ID: ONB02US04_TC_012
Title: Verify System Admin can configure working hours across utilities
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Access Control
Test Type: Security/Functional
Test Level: System
Priority: P1-Critical
Execution Phase: Regression
Automation Status: Manual

Enhanced Tags for 17 Reports Support

Tags: MOD-Security, P1-Critical, Phase-Regression, Type-Security, Platform-Web, Report-QA, Customer-Enterprise, Risk-High, Business-Critical, Revenue-Impact-High, Integration-End-to-End

Business Context

Customer_Segment: Enterprise
Revenue_Impact: High
Business_Priority: Must-Have
Customer_Journey: Onboarding
Compliance_Required: Yes
SLA_Related: Yes

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Login as System Admin

System Admin authenticated

Username: sysadmin@smart360.com, Password: AdminPass123


2

Navigate to Calendar & Scheduling

Access granted to configuration page



3

Verify utility selection options

Multiple utilities available for configuration

Expected: Metropolis Water District, Springfield Energy Authority, Riverdale Utilities Corp


4

Select Springfield Energy Authority

Utility context switched

Utility: Springfield Energy Authority


5

Configure working hours

Working hours configurable for selected utility



6

Save changes

Changes saved for correct utility



7

Switch to different utility

Context changes properly

Utility: Riverdale Utilities Corp


8

Verify independent configurations

Each utility maintains separate settings






Test Case 13: Network Interruption During Save Operation

Test Case ID: ONB02US04_TC_013
Title: Verify system behavior during network interruption while saving
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Network Resilience
Test Type: Reliability
Test Level: System
Priority: P2-High
Execution Phase: Regression
Automation Status: Manual

Enhanced Tags for 17 Reports Support

Tags: MOD-Reliability, P2-High, Phase-Regression, Type-Reliability, Platform-Web, Report-Engineering, Customer-Enterprise, Risk-High, Business-High, Revenue-Impact-Medium, Integration-End-to-End

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Holiday Calendar

Holiday Calendar displayed



2

Add new holiday

Holiday configured but not saved

Name: "Network Test Holiday", Date: May 31, 2025


3

Disconnect network connection

Network unavailable


Use browser dev tools or network controls

4

Click "Save Changes" button

System handles network error gracefully



5

Verify error handling

Appropriate error message displayed

Expected: Network error notification


6

Reconnect network

Network connection restored



7

Retry save operation

Holiday saves successfully after reconnection



8

Verify data persistence

Holiday appears correctly after save






Test Case 14: Session Timeout Behavior

Test Case ID: ONB02US04_TC_014
Title: Verify system behavior when session times out during configuration
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Session Management
Test Type: Security/Reliability
Test Level: System
Priority: P2-High
Execution Phase: Regression
Automation Status: Manual

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Login and navigate to Calendar page

Calendar page loaded



2

Configure working hours changes

Changes made but not saved

Modify Friday: 8:00 AM - 4:00 PM


3

Wait for session timeout

Session expires


Simulate or wait for actual timeout

4

Attempt to save changes

System handles expired session



5

Verify redirect to login

User redirected to authentication



6

Re-authenticate

User logged back in



7

Return to Calendar page

Unsaved changes lost (expected behavior)



8

Verify original settings remain

No unintended changes persisted






Test Case 15: Calendar Performance with Multiple Holidays

Test Case ID: ONB02US04_TC_015
Title: Verify calendar performance with multiple holidays displayed
Created By: Auto-generated
Created Date: 2025-05-28
Version: 1.0

Classification

Module/Feature: Calendar Performance
Test Type: Performance
Test Level: System
Priority: P3-Medium
Execution Phase: Performance
Automation Status: Planned-for-Automation

Enhanced Tags for 17 Reports Support

Tags: MOD-Performance, P3-Medium, Phase-Performance, Type-Performance, Platform-Web, Report-Engineering, Customer-Enterprise, Risk-Low, Business-Medium, Revenue-Impact-Low, Integration-End-to-End

Test Procedure

Step #

Action

Expected Result

Test Data

Comments

1

Navigate to Holiday Calendar

Calendar loads within baseline time

Performance baseline: < 3 seconds


2

Add 10 holidays to current month

All holidays added successfully

Various dates and types


3

Navigate between months

Month navigation remains responsive


Performance should remain < 1 second

4

Verify calendar rendering

All holidays display correctly



5

Test page refresh

Page loads with all holidays within baseline



6

Monitor browser performance

No memory leaks or performance degradation


Use browser dev tools




Test Suite Organization

Smoke Test Suite

Criteria: P1 priority, basic functionality validation
Test Cases: ONB02US04_TC_001, ONB02US04_TC_002, ONB02US04_TC_004
Execution: Every build deployment
Duration: ~15 minutes

Regression Test Suite

Criteria: P1-P2 priority, automated tests
Test Cases: TC_001 through TC_012
Execution: Before each release
Duration: ~60 minutes

Full Test Suite

Criteria: All test cases including edge cases
Test Cases: TC_001 through TC_015
Execution: Weekly or major release cycles
Duration: ~90 minutes

API Test Cases (Critical Level ≥7)

API Test Case 1: Holiday Creation Endpoint

Test Case ID: ONB02US04_API_001
Title: Validate holiday creation via API endpoint
Priority: P1-Critical
Importance Level: 9

Test Procedure: The holiday creation endpoint should accept POST requests to create new holidays for a specific utility organization. The API should validate required fields including date, holiday name, and type. The endpoint should return appropriate HTTP status codes and response data confirming successful creation.

Request Validation Points:

  • Verify POST method acceptance to the utility-specific holiday endpoint
  • Validate required fields: date (ISO format), name (string), type (enum: federal/company/observed)
  • Test optional fields such as timezone specification
  • Confirm proper Content-Type header handling (application/json)
  • Validate utility ID parameter in URL path

Response Validation Points:

  • Verify 201 Created status for successful holiday creation
  • Confirm response includes generated holiday ID and creation timestamp
  • Validate response data matches submitted request data
  • Test error responses for missing required fields (400 Bad Request)
  • Verify unauthorized access returns 403 Forbidden
  • Test duplicate holiday prevention with appropriate error response

Security Testing:

  • Validate authentication token requirement
  • Test authorization for utility-specific access
  • Verify input sanitization for holiday name field
  • Test SQL injection prevention in all input fields

API Test Case 2: Working Hours Configuration Endpoint

Test Case ID: ONB02US04_API_002
Title: Validate working hours update via API
Priority: P1-Critical
Importance Level: 8

Test Procedure: The working hours configuration endpoint should accept PUT requests to update the complete weekly schedule for a utility organization. The API should validate time formats, working day configurations, and maintain data consistency across all days of the week.

Request Validation Points:

  • Verify PUT method acceptance for working hours update
  • Validate time format requirements (24-hour format: HH:MM)
  • Test working day boolean flag for each day of the week
  • Confirm null value handling for non-working days
  • Validate all seven days of the week are included in request
  • Test timezone considerations for time values

Response Validation Points:

  • Verify 200 OK status for successful updates
  • Confirm response includes updated working hours configuration
  • Validate timestamp of last modification
  • Test error responses for invalid time formats (400 Bad Request)
  • Verify partial update rejection (all days must be specified)
  • Test authorization failures return appropriate error codes

Business Logic Validation:

  • Verify start time cannot be later than end time for same day
  • Test boundary time values (00:00 to 23:59)
  • Validate working day consistency (start/end times required when working=true)
  • Test non-working day validation (start/end should be null when working=false)

API Test Case 3: Holiday Retrieval Endpoint

Test Case ID: ONB02US04_API_003
Title: Validate holiday data retrieval with filtering options
Priority: P1-Critical
Importance Level: 8

Test Procedure: The holiday retrieval endpoint should support GET requests with various query parameters for filtering holidays by date range, type, and pagination. The API should return properly formatted holiday data with consistent structure and proper HTTP caching headers.

Request Validation Points:

  • Verify GET method support for holiday data retrieval
  • Test date range filtering with start_date and end_date parameters
  • Validate holiday type filtering (federal, company, observed)
  • Test pagination parameters (page, limit)
  • Verify utility ID scope restriction
  • Test invalid parameter handling

Response Validation Points:

  • Verify 200 OK status for successful retrieval
  • Confirm response includes array of holiday objects
  • Validate consistent data structure for each holiday
  • Test pagination metadata (total count, page info)
  • Verify proper HTTP caching headers
  • Test empty result handling (no holidays found)

API Test Case 4: Holiday Deletion Endpoint

Test Case ID: ONB02US04_API_004
Title: Validate holiday deletion via API endpoint
Priority: P2-High
Importance Level: 7

Test Procedure: The holiday deletion endpoint should accept DELETE requests to remove specific holidays. The API should validate holiday ownership, prevent unauthorized deletions, and maintain audit trail information for compliance purposes.

Request Validation Points:

  • Verify DELETE method acceptance for specific holiday ID
  • Test holiday ID validation and existence checking
  • Validate utility ownership of holiday before deletion
  • Test authentication and authorization requirements
  • Verify cascade deletion handling if applicable

Response Validation Points:

  • Verify 204 No Content status for successful deletion
  • Test 404 Not Found for non-existent holiday IDs
  • Confirm 403 Forbidden for unauthorized deletion attempts
  • Validate audit trail creation for deletion event
  • Test idempotent deletion (multiple DELETE requests)

API Test Case 5: Working Hours Retrieval Endpoint

Test Case ID: ONB02US04_API_005
Title: Validate working hours configuration retrieval
Priority: P2-High
Importance Level: 7

Test Procedure: The working hours retrieval endpoint should return the complete weekly schedule configuration for a utility organization. The API should provide consistent data structure and handle timezone information appropriately.

Request Validation Points:

  • Verify GET method support for working hours retrieval
  • Test utility ID parameter validation
  • Validate authentication and authorization requirements
  • Test timezone parameter handling if supported
  • Verify proper URL structure and parameter encoding

Response Validation Points:

  • Verify 200 OK status for successful retrieval
  • Confirm response includes all seven days of the week
  • Validate consistent time format across all days
  • Test working day boolean flag accuracy
  • Verify timezone information inclusion
  • Test default configuration handling for new utilities

API Test Case 6: Bulk Holiday Import Endpoint

Test Case ID: ONB02US04_API_006
Title: Validate bulk holiday import functionality
Priority: P2-High
Importance Level: 7

Test Procedure: The bulk holiday import endpoint should accept POST requests with multiple holiday records for efficient batch processing. The API should validate all records, handle partial failures gracefully, and provide detailed response information about import results.

Request Validation Points:

  • Verify POST method acceptance for bulk holiday data
  • Test array of holiday objects in request body
  • Validate individual holiday record format within bulk request
  • Test request size limitations and handling
  • Verify duplicate detection across bulk import records
  • Test partial data validation (some valid, some invalid records)

Response Validation Points:

  • Verify 200 OK status for successful bulk import
  • Confirm response includes success count and failure details
  • Test detailed error reporting for failed records
  • Validate successful import confirmation with created holiday IDs
  • Test rollback behavior for critical failures
  • Verify audit trail creation for bulk operations

API Error Handling Standards

Authentication Errors:

  • 401 Unauthorized: Missing or invalid authentication token
  • 403 Forbidden: Valid authentication but insufficient permissions
  • Token expiration handling and refresh requirements

Validation Errors:

  • 400 Bad Request: Malformed request data or missing required fields
  • 422 Unprocessable Entity: Valid format but business rule violations
  • Detailed error messages with field-specific validation feedback

System Errors:

  • 500 Internal Server Error: Unexpected system failures
  • 503 Service Unavailable: Temporary system maintenance or overload
  • Proper error logging and monitoring integration

Rate Limiting:

  • 429 Too Many Requests: API rate limit exceeded
  • Proper rate limiting headers in responses
  • Progressive backoff recommendations in error responses

API Performance Standards

Response Time Requirements:

  • Holiday creation/update operations: < 500ms
  • Holiday retrieval operations: < 300ms
  • Working hours operations: < 400ms
  • Bulk operations: < 2 seconds for up to 100 records

Throughput Requirements:

  • Support minimum 100 concurrent API requests
  • Handle peak loads during business hours
  • Maintain performance under typical utility organization usage patterns

Data Consistency:

  • Immediate consistency for single-record operations
  • Eventual consistency acceptable for bulk operations
  • Proper transaction handling for data integrity

Performance Benchmarks

Operation

Expected Performance

Measurement Method

Calendar Page Load

< 3 seconds

Browser dev tools Network tab

Holiday Addition

< 500ms

API response time

Working Hours Save

< 500ms

API response time

Month Navigation

< 1 second

UI responsiveness

Calendar Refresh

< 2 seconds

Full page reload time

Integration Test Map

Internal System Dependencies

  • Authentication Service: User login and session management
  • Utility Management: Organization context and permissions
  • Time Zone Service: System-wide timezone handling
  • Audit Logging: Change tracking and compliance

External System Dependencies

  • None identified based on requirements clarification

Browser Compatibility Matrix

Browser

Version

Test Coverage

Priority

Chrome

Latest

Full test suite

P1-Critical

Chrome

Latest-1

Smoke + Regression

P2-High

Test Data Requirements

Holiday Test Data

The test suite requires various holiday configurations to validate all functionality:

Federal Holidays: Standard government holidays such as New Year's Day, Independence Day, Memorial Day, Labor Day, and Thanksgiving. These holidays should include dates across different months and years to test calendar navigation and year boundary scenarios.

Company Holidays: Organization-specific holidays such as Company Founders Day, Annual Company Picnic, Training Days, and Team Building events. Include holidays with varying name lengths and special characters to test input validation.

Observed Holidays: Local or regional holidays that may be observed based on utility location, such as state-specific holidays, local festival days, or cultural celebrations. Include holidays that might overlap with federal holidays to test duplicate prevention logic.

Holiday Edge Cases: Test data should include holidays with very long names (150+ characters), special characters (apostrophes, hyphens, international characters), and potential SQL injection strings to validate input security and sanitization.

Working Hours Test Data

The test suite requires various working hour configurations across different utility organizations:

Standard Business Hours: Traditional 9:00 AM to 5:00 PM Monday through Friday schedule with weekends as non-working days. This serves as the baseline configuration for most test scenarios.

Alternative Shift Patterns: Various shift configurations including early shifts (7:00 AM - 3:00 PM), late shifts (1:00 PM - 9:00 PM), and standard office hours variations (8:00 AM - 4:00 PM, 8:00 AM - 6:00 PM) to test quick preset functionality.

Weekend Working Configurations: Scenarios where utilities operate on weekends with different hours, such as Saturday working hours (9:00 AM - 1:00 PM) or full weekend operations matching weekday hours for 24/7 utility operations.

Boundary Time Values: Test configurations using minimum time boundaries (00:00 - midnight) and maximum time boundaries (23:59) to validate time input validation and edge case handling.

Custom Schedule Patterns: Non-standard working hours such as 10:30 AM - 3:45 PM or split shifts to test custom slider configurations and time precision handling.

Test User Accounts and Organizations

The testing environment requires multiple user accounts with different permission levels:

Utility Administrator Accounts: Users with full permissions to manage holidays and working hours for their specific utility organization. Examples include administrators for Metropolis Water District, Springfield Energy Authority, and Riverdale Utilities Corp.

System Administrator Accounts: Users with cross-utility permissions who can manage calendar configurations across multiple utility organizations. These accounts should have access to switch between different utility contexts.

Read-Only User Accounts: Users with view-only permissions to verify access control restrictions. These accounts should be able to view calendar information but not modify any configurations.

Utility Organizations: Multiple utility companies with different configurations to test multi-tenant functionality. Each organization should have unique settings for holidays and working hours to validate data isolation and context switching.

Test Environment Data

The testing environment should be configured with realistic utility industry data:

Organization Names: Utility companies with realistic names such as municipal water districts, energy authorities, electric cooperatives, and utility corporations representing different types of utility organizations.

Geographic Considerations: Organizations representing different regions to test timezone handling and regional holiday variations, ensuring the system properly handles system-wide timezone configurations.

Historical Data: Previously configured holidays and working hours to test data persistence, modification capabilities, and historical data handling during system upgrades or migrations.

Performance Testing Data: Large datasets with 100+ holidays across multiple years and various working hour configurations to validate system performance under realistic data volumes expected in production environments.

Additional Edge Case Test Scenarios

Test Case 16: Holiday Name Special Characters

Test Case ID: ONB02US04_TC_016
Title: Validate holiday names with special characters and international text
Priority: P3-Medium
Test Type: Boundary/Functional

Test Procedure:

  1. Navigate to Holiday Calendar
  2. Test holiday names with special characters: "St. Patrick's Day", "Día de los Muertos", "New Year's Eve (12/31)"
  3. Test Unicode characters: "春节" (Chinese New Year)
  4. Test SQL injection attempts: "'; DROP TABLE holidays; --"
  5. Verify proper encoding and storage
  6. Confirm display renders correctly

Test Case 17: Multiple Browser Tabs Synchronization

Test Case ID: ONB02US04_TC_017
Title: Verify data synchronization across multiple browser tabs
Priority: P3-Medium
Test Type: Concurrency

Test Procedure:

  1. Open Calendar page in two browser tabs
  2. Add holiday in Tab 1
  3. Switch to Tab 2 and refresh
  4. Verify holiday appears in Tab 2
  5. Modify working hours in Tab 2
  6. Save changes and switch to Tab 1
  7. Verify changes reflected after refresh

Test Case 18: Calendar Year Boundary Testing

Test Case ID: ONB02US04_TC_018
Title: Test calendar navigation across year boundaries
Priority: P2-High
Test Type: Boundary

Test Procedure:

  1. Navigate to December 2025
  2. Navigate to next month (January 2026)
  3. Add holiday in January 2026
  4. Navigate back to December 2025
  5. Navigate forward again to January 2026
  6. Verify holiday persists
  7. Test year navigation limits

Test Case 19: Working Hours Overlap Validation

Test Case ID: ONB02US04_TC_019
Title: Validate working hours when end time is before start time
Priority: P2-High
Test Type: Negative/Validation

Test Procedure:

  1. Configure Monday working hours
  2. Set start time to 5:00 PM
  3. Set end time to 9:00 AM (next day scenario)
  4. Verify system validation behavior
  5. Test overnight shifts handling
  6. Confirm appropriate error messages

Test Case 20: Quick Time Presets Edge Cases

Test Case ID: ONB02US04_TC_020
Title: Test Quick Time Presets with custom configurations
Priority: P3-Medium
Test Type: Functional

Test Procedure:

  1. Configure custom working hours (e.g., 10:30 AM - 3:45 PM)
  2. Apply Quick Time Preset (8AM - 4PM)
  3. Verify custom times are overwritten
  4. Apply different preset (7AM - 3PM)
  5. Verify preset application
  6. Test preset application on non-working days

Security Test Scenarios

Test Case 21: Cross-Site Scripting (XSS) Prevention

Test Case ID: ONB02US04_SEC_001
Title: Verify XSS prevention in holiday name inputs
Priority: P1-Critical
Test Type: Security

Test Procedure:

  1. Navigate to Holiday Calendar
  2. Attempt to enter XSS payload in holiday name: <script>alert('XSS')</script>
  3. Submit holiday creation
  4. Verify script is not executed
  5. Check holiday display for proper encoding
  6. Test additional XSS vectors: javascript:alert(1), onmouseover="alert(1)"

Test Case 22: SQL Injection Prevention

Test Case ID: ONB02US04_SEC_002
Title: Verify SQL injection prevention in input fields
Priority: P1-Critical
Test Type: Security

Test Procedure:

  1. Test SQL injection in holiday name: '; DROP TABLE holidays; --
  2. Test in date parameters via API calls
  3. Verify database operations remain secure
  4. Test blind SQL injection attempts
  5. Confirm error messages don't reveal database structure

Test Case 23: Authorization Bypass Attempts

Test Case ID: ONB02US04_SEC_003
Title: Verify proper authorization controls
Priority: P1-Critical
Test Type: Security

Test Procedure:

  1. Login as Utility Administrator for Utility A
  2. Attempt to access/modify Utility B's calendar data
  3. Test direct API calls with manipulated utility IDs
  4. Verify proper 403 Forbidden responses
  5. Test session token manipulation
  6. Confirm audit logging of unauthorized attempts

Accessibility Test Scenarios

Test Case 24: Keyboard Navigation

Test Case ID: ONB02US04_ACC_001
Title: Verify full keyboard navigation support
Priority: P2-High
Test Type: Accessibility

Test Procedure:

  1. Navigate entire Calendar page using only Tab key
  2. Verify all interactive elements are focusable
  3. Test calendar date selection with keyboard
  4. Test working hours configuration with keyboard only
  5. Verify proper focus indicators
  6. Test form submission with Enter key

Test Case 25: Screen Reader Compatibility

Test Case ID: ONB02US04_ACC_002
Title: Verify screen reader accessibility
Priority: P2-High
Test Type: Accessibility

Test Procedure:

  1. Test with NVDA/JAWS screen reader
  2. Verify calendar dates are properly announced
  3. Test holiday type announcements
  4. Verify form labels are associated correctly
  5. Test error message announcements
  6. Confirm semantic HTML structure

Load Testing Scenarios

Test Case 26: Concurrent User Load

Test Case ID: ONB02US04_LOAD_001
Title: Test system performance with multiple concurrent users
Priority: P2-High
Test Type: Performance/Load

Test Procedure:

  1. Simulate 50 concurrent users accessing Calendar page
  2. Monitor response times and system resources
  3. Test concurrent holiday creation/modification
  4. Verify data consistency under load
  5. Monitor database performance
  6. Confirm no data corruption occurs

Test Case 27: Large Dataset Performance

Test Case ID: ONB02US04_LOAD_002
Title: Test calendar performance with large holiday datasets
Priority: P3-Medium
Test Type: Performance

Test Procedure:

  1. Create 100+ holidays across multiple years
  2. Test calendar navigation performance
  3. Monitor memory usage during month switching
  4. Test search/filter functionality with large datasets
  5. Verify pagination if implemented
  6. Test data export performance

Integration Test Scenarios

Test Case 28: Audit Trail Integration

Test Case ID: ONB02US04_INT_001
Title: Verify audit logging integration for all changes
Priority: P2-High
Test Type: Integration

Test Procedure:

  1. Add new holiday and verify audit log entry
  2. Modify working hours and check audit trail
  3. Delete holiday and confirm deletion logged
  4. Verify audit entries include user, timestamp, changes
  5. Test audit log access permissions
  6. Confirm audit data retention policies

Test Case 29: Time Zone Integration

Test Case ID: ONB02US04_INT_002
Title: Verify system-wide timezone handling consistency
Priority: P2-High
Test Type: Integration

Test Procedure:

  1. Configure holidays in different system timezones
  2. Verify display consistency across utility organizations
  3. Test working hours with timezone changes
  4. Confirm API responses include proper timezone data
  5. Test daylight saving time transitions
  6. Verify historical data timezone accuracy

Data Migration Test Scenarios

Test Case 30: Holiday Data Import/Export

Test Case ID: ONB02US04_MIG_001
Title: Test holiday data import and export functionality
Priority: P3-Medium
Test Type: Data Migration

Test Procedure:

  1. Export existing holiday configuration
  2. Clear calendar data
  3. Import previously exported data
  4. Verify data integrity and completeness
  5. Test import with malformed data files
  6. Confirm error handling during import failures

Business Continuity Test Scenarios

Test Case 31: System Recovery After Failure

Test Case ID: ONB02US04_BC_001
Title: Verify data persistence after system failure
Priority: P1-Critical
Test Type: Business Continuity

Test Procedure:

  1. Configure holidays and working hours
  2. Simulate system crash/restart
  3. Verify all saved data persists
  4. Test unsaved changes are lost (expected)
  5. Confirm system returns to stable state
  6. Test backup and recovery procedures

Compliance Test Scenarios

Test Case 32: Data Retention Compliance

Test Case ID: ONB02US04_COMP_001
Title: Verify data retention and deletion policies
Priority: P2-High
Test Type: Compliance

Test Procedure:

  1. Create historical holiday data
  2. Verify data retention according to policies
  3. Test data deletion after retention period
  4. Confirm audit trail preservation
  5. Test data anonymization procedures
  6. Verify compliance reporting capabilities

Test Execution Dependencies

Sequential Test Dependencies

  1. ONB02US04_TC_001 (Calendar Access) → All other tests
  2. ONB02US04_TC_002 (Holiday Creation) → ONB02US04_TC_008 (Duplicate Prevention)
  3. Authentication TestsRole-based Access Tests

Parallel Execution Groups

  • Group A: Holiday Management Tests (TC_002, TC_003, TC_007, TC_008)
  • Group B: Working Hours Tests (TC_004, TC_005, TC_006, TC_009)
  • Group C: Validation Tests (TC_011, TC_016, TC_019)
  • Group D: Security Tests (SEC_001, SEC_002, SEC_003)

Critical Path Tests

  1. ONB02US04_TC_001 - Calendar Access
  2. ONB02US04_TC_002 - Holiday Creation
  3. ONB02US04_TC_004 - Working Hours Configuration
  4. ONB02US04_TC_012 - Role-based Access
  5. ONB02US04_SEC_001 - XSS Prevention

Test Environment Setup Requirements

Prerequisites

  • Smart360 application deployed and accessible
  • Test user accounts created with appropriate permissions
  • Sample utility organizations configured
  • Database initialized with baseline data
  • Network simulation tools available for negative testing

Test Data Reset Procedures

  1. Clear all test holidays from calendar
  2. Reset working hours to default (9 AM - 5 PM weekdays)
  3. Restore default user permissions
  4. Clear audit logs for clean test runs
  5. Reset system timezone to UTC for consistent testing

Defect Classification Guidelines

Critical (P1) Issues

  • System crashes or data loss
  • Security vulnerabilities
  • Core functionality completely broken
  • Data corruption issues

High (P2) Issues

  • Important features not working as expected
  • Performance issues affecting usability
  • Minor security concerns
  • Integration problems

Medium (P3) Issues

  • UI/UX problems that don't affect functionality
  • Minor performance issues
  • Edge case handling problems
  • Documentation inconsistencies

Low (P4) Issues

  • Cosmetic issues
  • Minor text/label problems
  • Enhancement requests
  • Non-critical compatibility issues

Test Metrics and Reporting

Key Metrics to Track

  • Test Execution Rate: Tests executed vs. planned
  • Pass Rate: Percentage of tests passing
  • Defect Density: Defects per test case
  • Test Coverage: Features covered by tests
  • Performance Metrics: Response times and load handling
  • Security Test Results: Vulnerability assessment results

BrowserStack Report Categories

  1. Quality Dashboard: Overall test health metrics
  2. Module Coverage: Feature-specific test results
  3. Regression Analysis: Build-over-build comparison
  4. Performance Trends: Response time trends
  5. Security Assessment: Security test outcomes
  6. Cross-browser Compatibility: Browser-specific results
  7. Accessibility Compliance: WCAG compliance status
  8. API Test Results: Backend service validation
  9. Load Test Summary: Performance under load
  10. Integration Test Status: System integration health
  11. Business Critical Path: Core workflow validation
  12. Customer Impact Analysis: User-facing issue assessment
  13. Compliance Validation: Regulatory requirement verification
  14. Data Integrity Check: Data consistency validation
  15. User Experience Metrics: Usability test results
  16. Mobile Responsiveness: Mobile compatibility status
  17. Deployment Readiness: Release criteria validation

Test Case Maintenance Guidelines

Review Schedule

  • Weekly: Update test data and environment configs
  • Per Release: Review and update test cases for new features
  • Monthly: Analyze test effectiveness and update priorities
  • Quarterly: Complete test suite review and optimization

Update Triggers

  • New feature additions to Calendar & Scheduling
  • Business rule changes
  • UI/UX modifications
  • Security requirement updates
  • Performance benchmark changes
  • Browser compatibility updates

Version Control

  • All test cases maintained in version control
  • Change history tracked for each test case
  • Approval process for test case modifications
  • Rollback procedures for test case versions




Total Test Cases Generated: 32 functional + 15 additional scenarios = 47 comprehensive test cases

Coverage Summary:

  • ✅ All acceptance criteria covered
  • ✅ All business rules tested
  • ✅ Cross-browser compatibility (Chrome Latest)
  • ✅ Security testing included
  • ✅ Performance benchmarks defined
  • ✅ API testing for critical operations
  • ✅ Edge cases and boundary conditions
  • ✅ Role-based access control validation
  • ✅ Error handling and recovery scenarios
  • ✅ Integration points tested

Test Execution Estimate:

  • Smoke Suite: ~15 minutes
  • Regression Suite: ~60 minutes
  • Full Suite: ~120 minutes
  • Performance/Load Testing: ~30 minutes additional