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.
- If the requested cottage and/or week are not available, you suggest alternatives.
- 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.
- If the deposit arrives within seven days, the cottage is marked as booked.
- 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.
- When the balance of rental payment arrives, the system lets you mark the cottage as rented.
- If the balance of rental payment does not arrive 21 days before the arrival date:
- The system cancels the booking and the cottage becomes available.
- You keep the deposit (if the customer paid it).
- A customer may cancel a reservation or booking.
- The system lets you indicate the cottage is available again.
- 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).
- 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
Get step-by-step solutions from verified subject matter experts
