Test Case Ideas for a Room Booking Form

Published on March 17, 2024

These are test cases generated using the TestCraft browser extension for the Room Booking feature that is available on the Restful Booker website. This has been done for Day 10 of the 30 Days of AI in Testing challenge, setup by the Ministry of Testing.

Generated Test Ideas

Positive Tests:
Verify that clicking on the “Today” button navigates the calendar to the current date.
Check that clicking on the “Back” button navigates to the previous month.
Ensure that clicking on the “Next” button navigates to the next month.
Verify that selecting a date from the calendar updates the booking form with the chosen date.

Negative:
Attempt to book a room without entering a first name, last name, email, or phone number to check for appropriate validation messages.
Try booking a room with an invalid email format to validate the email input field.
Verify that attempting to book a room without selecting a date from the calendar results in an error message.

Creative Test Scenarios:
Test the responsiveness of the calendar by resizing the browser window to different screen sizes.
Try booking a room with special characters in the first name and last name fields to validate input sanitation.
Test booking a room with a past date to ensure the system handles historical bookings correctly.