Back To Blogs

How to Test a Booking System: Dates, Capacity, Clashes and Refunds

Room bookings, appointments, tables, classes, rentals: scheduling systems look simple and are full of traps. Time is continuous, rules interact, and every booking affects the ones around it. Here's how to test them systematically.

1. Dates

  • Past dates: booking for yesterday must be rejected, including via the API
  • Today: allowed, but not for a time that has already passed
  • Booking horizon: if bookings open 60 days ahead, test day 60 and day 61
  • Calendar edges: month end, 29 February, 31 December → 1 January
  • Formats: typed dates vs date pickers; local formats (03/04 is 3 April or 4 March)

2. Time and opening hours

Test both edges of every time window:

  • Start before opening (07:59 if the venue opens at 08:00)
  • Start at opening (08:00)
  • End after closing: a 2-hour booking starting at 19:00 when the venue closes at 20:00. Systems often validate only the start time.
  • Ending exactly at closing (should be allowed)
  • Slot granularity: if bookings are on the half hour, what happens at 10:15?

3. Time zones and daylight saving

  • Which time zone is the venue in, and which is the user in? The display should be clear about it.
  • Bookings that cross a daylight-saving change (the hour that is skipped or repeated)
  • A user travelling: book in one time zone, view in another
  • Server vs client time: "today" at 23:30 local time may already be tomorrow in UTC

4. Capacity

Capacity limits are classic off-by-one territory:

  • Room capacity 6: test 6 guests (accepted) and 7 (rejected), plus 0 and 1
  • Is capacity checked per room or per venue?
  • Does capacity change by room type, and is the right limit used?

5. Clashes and overlaps

The heart of a booking system: the same resource can't be booked twice at once.

Given an existing booking 10:00–11:00, test new bookings:

New bookingExpected
09:00–10:00 (ends as the other starts)Allowed
11:00–12:00 (starts as the other ends)Allowed
10:30–11:30 (starts inside)Rejected
09:30–10:30 (ends inside)Rejected
09:00–12:00 (contains the other)Rejected
10:15–10:45 (inside the other)Rejected

Common bug: the overlap check only compares start times, so a booking that starts half an hour into another is accepted.

Also test two people booking the same slot at the same moment (two browsers, submit together). Only one should succeed.

6. Pricing

  • Price for every allowed duration: does 1.5 hours cost 1.5 × the hourly rate?
  • Rounding: half-hours, minimum charges, currency rounding to the cent
  • Peak and off-peak rates when a booking spans both
  • Taxes and fees shown consistently on the quote, the confirmation and the receipt

Common bug: durations with half hours rounded down, so 90 minutes is charged as 60.

7. Cancellations and refunds

Policies like "free cancellation up to 24 hours before; 50% fee after":

  • Cancel 25 hours before (full refund) and 23 hours before (fee applies)
  • Exactly at 24 hours: which side does it fall on? Check the spec.
  • Cancelling a booking that has already started or ended
  • Refund amount = price − fee, to the cent
  • After cancelling, the slot becomes free again and can be rebooked

Common bugs: a late cancellation refunded in full; a cancelled booking still blocking the slot.

8. State and history

  • "My bookings" shows upcoming, past and cancelled bookings correctly
  • Booking references are unique and can't be guessed to view others' bookings
  • Editing a booking re-runs every check above (capacity, clashes, hours, price)

A test design tip

Draw a timeline for clash tests and a table for pricing and refund rules. Both make gaps obvious, and both are great artefacts to include in a QA portfolio.

Practise on BookIt

The BookIt app in QAUnlocked Practice Labs is a co-working room booking site with planted defects in exactly these areas. Booking basics covers dates, capacity and opening hours; Availability, pricing & cancellations covers clashes, half-hour pricing and refund rules. Can you find them all without hints?

booking systemsdate testingedge casesweb testing

Comments

0 Comments

Be the first to comment.