Test Case 1 : Login test
The test case verifies the login functionality of a locally hosted website (http://localhost:3000). It inputs valid credentials (ss@e.com and 1234), submits the login form, and checks if the user is redirected to the home page (/home).
The user should be redirected to http://localhost:3000/home upon successful login with valid credentials. No error messages should appear.
The test passed as expected; the user was successfully redirected to /home. No error messages were encountered during the test.
This test ensures that the login functionality works correctly with valid credentials. It confirms that the authentication process and redirection mechanisms are implemented correctly, improving the reliability of the website.
Test Case 2 :Signup test
Description:
This test case checks the signup functionality by entering a username, email, password, and confirming the password. After clicking the submit button, it verifies if the signup process is successful or if there are any error messages displayed.
Expected Output:
The expected output is either a "Signup successful!" message or an error message if the signup fails. If the signup is successful, the test passes.
Actual Output:
The actual output will either be a "Signup successful!" message or an error message, as seen in the test result. If the success message is found, the test prints "Test Passed," and if the error message is displayed, the test prints "Test Failed."
Importance:
This test case is crucial for validating that users can successfully register by providing valid input. It ensures that the signup page properly handles both successful and failed signup attempts, providing feedback to users.
Test Case 3 : Shortest Path
Description of Test Case:
The test case checks whether the nearest venue displayed for the city "Pune" is "Elegant Ballroom" based on the A* algorithm and Haversine distance calculations.
Expected Output:
The nearest venue displayed should be "Elegant Ballroom."
Actual Output:
The nearest venue displayed is "Elegant Ballroom," as expected.
Importance of Test Case:
This test ensures that the venue search logic is functioning correctly by verifying that the correct venue ("Elegant Ballroom") is returned when the city "Pune" is entered, ensuring accurate venue recommendations based on the user's location.
Test Case 4 : Available Date Checks
This test case checks the functionality of the calendar popup for the "February" selection. The goal is to ensure that the popup appears with the correct dates and closes when clicking outside. It verifies both the popup display and interaction behavior.
The calendar popup should appear when the user selects "February" and clicks the "Check Calendar" button. The popup should display available dates for the selected month. After verifying the dates, the popup should close when the user clicks outside it.
The calendar popup successfully appears after selecting "February" and clicking the "Check Calendar" button. The popup shows available dates for February. Clicking outside the popup closes it as expected.
This test ensures that the calendar popup displays the correct available dates for the selected month. It validates that the user interface works as intended and provides an intuitive experience. Ensuring the popup closes when clicked outside is crucial for proper user interaction.
Test Case 5: Booking Form And Recipt Functionality
Description: This test case is designed to verify that all the details on the booking form can be filled in properly, and that after entering the necessary information, the form will allow the user to manually click the "Book Now" button. The system waits for the user to click the button, and once clicked, it checks if the receipt appears, confirming the successful booking. The test case ensures that the form behaves as expected and interacts properly with user actions.
Expected Output: The form should allow for all fields to be populated correctly, and once the user clicks the "Book Now" button, the system should display a booking receipt. The booking ID should appear on the receipt, indicating that the booking has been successfully processed.
Actual Output: The test case passed successfully, confirming that the user can input all required details into the form and that the system responds correctly after manually clicking the "Book Now" button, displaying the receipt with the booking ID.
Importance: This test case ensures that the booking form is functioning correctly by allowing users to enter all required details and manually submit the form, confirming that the application properly processes the booking. It is crucial for ensuring the user experience is smooth and that the booking flow works as intended.