This project contains a comprehensive Selenium-based test suite to automate the functional testing of a healthcare web application. Each module and feature of the application is tested with both positive and negative test cases, ensuring robust validation of the system.
The test cases are divided into multiple Java files, categorized by application modules and functionalities. Below is a list of the sections covered:
base.htmlbasic.html
signin_page/index.htmlsignup_form/signup.html
checkdisease.htmlconsult_a_doctor.htmlconsultation_history.htmlpatient_ui.htmlview_profile.html
appointment.htmlcontact.html
Each module is tested with detailed positive and negative test cases, covering edge cases, valid inputs, and invalid inputs.
- Verify form fields are visible and functional.
- Validate successful form submissions with valid inputs.
- Ensure proper navigation and display of UI components.
- Test form submission with missing or invalid data.
- Validate error messages for invalid actions.
- Attempt unauthorized actions and verify proper error handling.
To run the test suite, ensure the following:
- Java Development Kit (JDK): Version 8 or higher.
- Maven: For dependency management.
- ChromeDriver: Ensure compatibility with your Chrome browser version.
- Selenium WebDriver: Latest version.
- Healthcare Application: Running locally or on a test server.
- Clone the repository.
- Install dependencies using Maven:
mvn clean install
- Configure the
ChromeDriverpath in the Java files if required. - Update the
baseUrlin test files to point to your local or test environment.
Run test cases using your preferred IDE (e.g., IntelliJ IDEA, Eclipse) or from the command line:
mvn testEach Java file corresponds to a specific feature or module of the healthcare application.
SigninPositiveTest.java: Tests successful login functionality.AppointmentNegativeTest.java: Tests invalid appointment submissions.ConsultDoctorPositiveTest.java: Validates consultation scheduling workflow.
- Test outputs, including success messages or error validations, are logged to the console.
- For better reporting, integrate with ExtentReports or similar tools.
Feel free to contribute by:
- Adding more test cases.
- Improving error handling and assertions.
- Updating the documentation.
For any issues or inquiries, please reach out to [rafiabdps@gmail.com].