Module:
Tag:
Term:
A search offers only the available rooms
Given
our organizer Carol
the Deluxe Suite is listed as available
When
Carol searches for a Room
Then
only the Deluxe Suite is offered
When
Carol selects the Deluxe Suite
Then
the Deluxe Suite is selected for the group
A paid booking is confirmed to every guest
Given
our organizer Carol
our guest Alice
our guest Bob
Carol has selected the Deluxe Suite
When
Carol adds Alice and Bob to the Booking
Carol submits the Payment for the Booking
Then
the Booking System confirms the Booking
the Booking System sends the Confirmation to Alice and Bob
When
Alice and Bob check in to the Deluxe Suite
Then
both guests are checked in
A declined payment leaves the booking pending
Given
our organizer Carol
our guest Alice
our guest Bob
Carol has added Alice and Bob to the Booking
When
Carol submits the Payment by {payment_method} for the Booking
Then
the Booking System declines the Payment because of {decline_reason}
the Booking stays pending and no Confirmation is sent to Alice or Bob
| payment_method | decline_reason | status |
|---|---|---|
| credit card | insufficient funds | ✓ |
| debit card | expired card | ✓ |
| bank transfer | fraud check failed | ✓ |
| gift card | partial balance | ✗ |
|
examples/hotel-booking/test_hotel_booking.py:313: in test_payment_declined
assert response == decline_reason E AssertionError: assert 'unsupported payment method' == 'partial balance' E E - partial balance E + unsupported payment method |
||
Cancelling a paid booking refunds it and notifies the guest
Given
our guest Alice
Alice has a confirmed Booking she paid for
When
Alice cancels the Booking
Then
the Booking System refunds the Payment for the Booking
the Booking System sends a Confirmation to Alice
Rebooking restores a cancelled booking
Expected to fail:
rebooking is not implemented yet
Given
our guest Alice
Alice has cancelled her stay
When
Alice rebooks the Booking
examples/hotel-booking/test_hotel_booking.py:360: in test_rebook_cancelled_booking
rebook_cancelled_booking(stay)
examples/hotel-booking/test_hotel_booking.py:348: in rebook_cancelled_booking
raise NotImplementedError('rebooking a cancelled booking is not supported yet')
E NotImplementedError: rebooking a cancelled booking is not supported yet
A booking can be cancelled only before its guest checks in
Given
our guest Alice
Alice has a confirmed Booking now and one next month
When
Alice checks in to the Deluxe Suite
Then
her current stay is checked in
When
Alice cancels her later Booking
Then
the later booking is cancelled
When
she tries to cancel the stay she has checked in to
Then
the cancellation is refused
Book a Group Trip
Carolsearches forRoom
search
CarolselectsDeluxe Suite
select
CaroladdsAlicetoBooking
CaroladdsBobtoBooking
CarolsubmitsPaymentforBooking
Booking SystemconfirmsBooking
Booking SystemsendsConfirmationtoAlice
Booking SystemsendsConfirmationtoBob
Carolredeemsloyalty points
no coverage
Alicechecks in toDeluxe Suite
Bobchecks in toDeluxe Suite
Scenarios
Covers:
Covers:
Covers:
Covers:
Cancel a Booking
AlicecancelsBooking
cancel
Booking SystemrefundsPaymentforBooking
Booking SystemsendsConfirmationtoAlice
Aliceasks to rebookBooking
rebook
Scenarios
Covers:
Covers:
Covers:
Glossary
Booking
Booking
A claim on one or more rooms for given dates.
Avoid:
Reservation (in partner APIs only)
Confirmation
Notification of a successful booking.
confirm
Guarantee a paid booking so its rooms are held for arrival.
cancel
Withdraw a booking before arrival.
rebook
Restore a cancelled booking for the same rooms and dates.
Stories:
cancel-a-booking
Other forms:
asks to rebook
Payment
Payment
Money transferred for a booking.
decline
Refuse a payment, leaving its booking pending.
refund
Return the payment for a cancelled booking.
Other
Organizer
Person booking accommodation on behalf of a group.
Stories:
book-a-group-trip
Other forms:
Carol
Guest
Individual traveler in the group.
Avoid:
Customer, Client
Other forms:
Alice
Bob
Booking System
Automated back-end for stays.
Room
A bookable hotel room.
Stories:
book-a-group-trip
Other forms:
Deluxe Suite
redeems
Undefined
Stories:
book-a-group-trip
No scenario uses this term.
loyalty points
Undefined
Stories:
book-a-group-trip
No scenario uses this term.
Actors
Work Objects
Activities
No terms match this filter.