This project is an automated test suite for the CURA Healthcare Service demo site, created using Selenium WebDriver and TestNG. The suite automates various actions on the website, including login, appointment booking, appointment history review, and logout.
The project uses the Page Object Model (POM) to create modular classes for different functionalities on the site:
- Login_Page: Manages user login actions, including navigation, entering credentials, and signing in.
- Appointment_Page: Handles booking appointments by selecting facilities, readmission options, healthcare programs, dates, and comments.
- Confirmation_Page: Manages confirmation actions post-booking, such as navigating to the homepage.
- History_Page: Manages navigation to and interactions within the appointment history.
- Logout_Page: Handles user logout actions, including accessing the sidebar and logging out.
Here is a summary of the main test cases covered by this suite:
-
Login to CURA Healthcare
- Access the login page and sign in with valid credentials.
-
Book an Appointment
- Select the facility, readmission options, healthcare program, appointment date, and add comments.
- Confirm and book the appointment.
-
Confirm Appointment
- Navigate to the homepage after confirming the appointment.
-
View Appointment History
- Access and review past appointment history.
-
Logout from CURA Healthcare
- Log out and return to the homepage.
To run this project, ensure you have the following installed:
- Java (JDK 8 or higher)
- Maven
- ChromeDriver (compatible with your Chrome version)
- TestNG
- Selenium WebDriver