Question: Black Box Tests - Designing test cases using State Transition Diagrams Use cases: To start, the reservation system marks all cottages as available for all

Black Box Tests - Designing test cases using State Transition Diagrams

Use cases:

  • To start, the reservation system marks all cottages as available for all weeks.
  • Customers may contact you by phone or email to ask about availability, prices and the like.
    • The system lets you add information about potential customers to your mailing list.
  • A customer contacts you by phone or email to reserve a cottage or a certain week.
  1. If the requested cottage and/or week are not available, you suggest alternatives.
  2. When you and the customer agree on a cottage and week, and the system lets you indicate that the cottage is reserved.
  • Upon reserving, the customer must send you a deposit of $250 if the arrival date is more three weeks ahead.
  1. If the deposit arrives within seven days, the cottage is marked as booked.
  2. If the deposit does not arrive within seven days, the system cancels the reservation and the cottage becomes available for rental to another customer.
  • Full payment is due three weeks before the arrival date. That means a customer who reserved with a deposit of $250 must pay the balance of $750 at least 21 days before arriving. A customer who books late (less than 21 days before arriving) must pay the full amount of $1000 within seven days of reserving.
  1. When the balance of rental payment arrives, the system lets you mark the cottage as rented.
  2. If the balance of rental payment does not arrive 21 days before the arrival date:
    1. The system cancels the booking and the cottage becomes available.
    2. You keep the deposit (if the customer paid it).

  • A customer may cancel a reservation or booking.
  1. The system lets you indicate the cottage is available again.
  2. If the customer cancels more than 3 months (90 days) before the arrival date, you return all money paid - deposit and balance of payment (if paid).
  3. If the customer cancels between 3 months and 3 weeks of the arrival date (89-21 days) you keep the deposit and return the balance of payment (if paid).
  • If the customer cancels within 20 days of the arrival date, you keep all money paid.
  • On the arrival date, the cottage becomes occupied.
  • If the customer does not turn up, you honour the booking anyway, in case the customer arrives late

Q1 (2.5 pts) Draw a state transition diagram for a reservation or booking record.

Consider that the diagram is the same for all 20 cottages and all 12 weeks, but shows the state of a booking for one cottage and one week.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!