Changes between Version 5 and Version 6 of Testing and Validation
- Timestamp:
- 05/18/26 23:08:35 (8 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Testing and Validation
v5 v6 6 6 7 7 The tests validate booking conflict prevention, RSVP consistency validation, and availability checking functionality implemented during the advanced database development phase. 8 9 The overlap validation tests explicitly cover: 10 * partial overlap at the beginning 11 * partial overlap at the end 12 * complete overlap 13 * fully contained intervals 14 * non-overlapping intervals before existing bookings 15 * non-overlapping intervals after existing bookings 8 16 9 17 == 1. Venue Booking Conflict Test == … … 35 43 === Expected Result === 36 44 37 The trigger prevents overlapping venue bookings for the same date and time interval. 38 39 == 2. RSVP Validation Test == 45 Creates the initial booking interval used for overlap testing. 46 47 == 2. Venue Overlap Validation Cases == 48 49 === SQL Code === 50 51 {{{ 52 #!sql 53 -- Overlap case 1 54 SELECT is_venue_available( 55 1, 56 '2026-06-20', 57 '19:00', 58 '23:00' 59 ); 60 61 -- Overlap case 2 62 SELECT is_venue_available( 63 1, 64 '2026-06-20', 65 '16:00', 66 '19:00' 67 ); 68 69 -- Overlap case 3 70 SELECT is_venue_available( 71 1, 72 '2026-06-20', 73 '17:00', 74 '23:00' 75 ); 76 77 -- Overlap case 4 78 SELECT is_venue_available( 79 1, 80 '2026-06-20', 81 '19:00', 82 '21:00' 83 ); 84 85 -- Non-overlap case 1 86 SELECT is_venue_available( 87 1, 88 '2026-06-20', 89 '14:00', 90 '17:00' 91 ); 92 93 -- Non-overlap case 2 94 SELECT is_venue_available( 95 1, 96 '2026-06-20', 97 '22:00', 98 '23:00' 99 ); 100 }}} 101 102 === Expected Result === 103 104 The first four cases return FALSE because the intervals overlap with the existing booking. 105 106 The last two cases return TRUE because the intervals do not overlap. 107 108 == 3. RSVP Validation Test == 40 109 41 110 === SQL Code === … … 63 132 Guests who declined RSVP cannot be marked as attending. 64 133 65 == 3. Venue Availability Function Test ==66 67 === SQL Code ===68 69 {{{70 #!sql71 SELECT is_venue_available(72 1,73 '2026-06-20',74 '18:00',75 '22:00'76 );77 }}}78 79 === Expected Result ===80 81 Returns FALSE if the venue already has a conflicting booking.82 83 134 == 4. Photographer Availability Function Test == 84 135 … … 212 263 The testing scenarios confirm that the implemented trigger functions, SQL functions, views, and constraints operate correctly and enforce the required business rules inside the PostgreSQL database layer. 213 264 214 The validation process demonstrates successful conflict prevention, integrity enforcement, and analytical reportingfunctionality for the Wedding Planner Management System.265 The validation process demonstrates successful overlap prevention, integrity enforcement, analytical reporting, and advanced interval validation functionality for the Wedding Planner Management System.
