This page has Test Cases For Online Clinic management system which is developed using PHP & MySQL. This handles complete operation of clinic. This system which manages complete clinic details in a single application and in a single database. In order to ensure that the system will operate efficiently and safely, tests are necessary at different phases of the system development. After developing the project we need to test the project. So we have followed following concepts for testing.
Test Cases For Online Clinic
- Login Page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | User does not enter any value and clicks Login. | “Required”message should be displayed | same | pass |
2 | User enters login ID but not password and clicks Login. | “Required” message should be displayed for password field | same | pass |
3 | User enters password but not login ID and clicks Login. | “Required” message should be displayed for login ID | same | pass |
4 | User enters wrong login ID or wrong password | “Invalid login ID or invalid password” should be displayed | same | pass |
5 | User enters login ID and wrong password | “invalid password” message should be displayed | same | pass |
6 | On successful login. | “Make an appointment page” should be displayed | same | pass |
7 | Login Failure. | The Control stays on the Login page itself | same | pass |
- Change password
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | User clicks change password button without entering any values. | “Required” message appears near all the blank fields. | same | pass |
2 | User enters Wrong old password and clicks change password | “old password is not valid..” message should be displayed | same | pass |
3 | User enters the correct old password but the new password length is less than 6. | “Minimum six letters are allowed” message appears near the new password field. | same | pass |
4 | New password and the confirm password do not match. | “Fields do not match” message appears near the confirm password field. | same | pass |
6 | User enters the old password and new password and confirm password and clicks “Change” button | “Password is changed Successfully” message will be displayed | same | pass |
- Forgot password
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | User clicks on “recover password” without entering any values | “Required” message should be displayed. | same | pass |
2 | User enters all the fields and clicks on recover password | “change password” form should be displayed | same | pass |
3 | User enters wrong information | “Invalid information” message should be displayed | same | pass |
4 | User clicks on reset button | Clears all the fields | same | pass |
- Patient Registration page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Patient clicks on registerwithout entering any values | “Required” message should be displayed. | same | pass |
2 | Patient enters all the fields and clicks on register | “patient registration successfully” message and “patient Id” is should be displayed | same | pass |
3 | Patient clicks on reset button | Clears all the fields | same | pass |
4 | Patient clicks on click here to make an appointment button | Redirects to the “appointments, doctor records” page | same | pass |
- Make appointment page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Patient clicks on “make an appointment” without entering all the values | “required”message should be displayed | same | pass |
2 | Patient enters all the fields and clicks on “make an appointment” button | redirects to the “appointment time” page | same | pass |
- Patient home page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Patient clicks on the “patient account” | The control stays on the “patient account” page itself | same | pass |
2 | Patient clicks on the “patient profile” | Redirects to the “profile “ page | same | pass |
3 | Patient clicks on the “change password” | Redirects to the “change password” page | same | pass |
4 | Patient clicks on the “appointment” | Redirects to the “appointments” page | same | pass |
6 | Patient clicks on the “treatment detail” | Redirects to the “treatment” page | same | pass |
7 | Patient clicks on the “lab test reports” | Redirects to the “ laboratory report” page | same | pass |
8 | Patient clicks on “logout” | “logged out successfully” message should be displayed | same | pass |
- Patient profile page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Patient clicks on “update profile” without entering any values | “required” message should be displayed | same | pass |
2 | Patient enters all the fields clicks on “update profile” button | “record updated successfully” message should be displayed | same | pass |
- Employee home page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Employee clicks on the “Employee Home” | The control stays on the “employee account” page itself | same | pass |
2 | Employee clicks on the “Employee profile” | Redirects to the “ profile” page | same | pass |
3 | Employee clicks on the “change password” | Redirects to the“change password” page | same | pass |
4 | Employee clicks on the “appointment” | Redirects to the“appointments” page | same | pass |
6 | Employee clicks on the “laboratory” | Redirects to the“laboratory” page | same | pass |
7 | Employee clicks on the “patient report” | Redirects to the“patient report” page | same | pass |
8 | Employee clicks on the “timings” | Redirects to the“doctor timings” page | same | pass |
9 | Employee clicks on the “expenses” | Redirects to the“expenses” page | same | Pass |
10 | Employee clicks on “logout” | “logged out successfully” message should be displayed | same | pass |
- Employee profile page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Employee clicks on “update profile” without entering any values | “required” message should be displayed | same | pass |
2 | Employee enters all the fields and clicks on “update profile” button | “Record updated successfully” message should be displayed | same | pass |
- Laboratory Test
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Lab assistant clicks on “update labtest” without entering any fields | “required” message should be displayed | same | pass |
2 | Lab assistant enters all the fields and clicks on “update labtest” button | “record inserted successfully” message should be displayed | same | Pass |
- Doctor home page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Doctor clicks on the “Doctor home” | The control stays on the “patient account” page itself | same | pass |
2 | Doctor clicks on the “Doctor profile” | Redirects to the“doctor profile” page | same | pass |
3 | Doctor clicks on the “change password” | Redirects to the“change password” page | same | pass |
4 | Doctor clicks on the “appointment records” | Redirects to the“appointment” page | same | pass |
6 | Doctor clicks on the “reports” | Redirects to the “ patient report” page | same | pass |
7 | Doctor clicks on the “timings” | Redirects to the“timings” page | same | pass |
8 | Doctor clicks on the “earnings” | Redirects to the“doctor’s earnings” page | same | pass |
9 | Doctor clicks on “logout” | “logged out successfully” message will be displayed | same | pass |
- Doctor profile page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Doctor clicks on “update profile” without entering any values | “required” message should be displayed | same | pass |
2 | Doctor enters all the fields and clicks on “update profile “ button | “record updated successfully” message should be displayed | same | pass |
- Patient report
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Doctor clicks on “submit” button without entering patient ID | No record should be displayed | same | pass |
2 | Doctor enters the” patient ID” and clicks on “submit” button | “Patient name” along with “treatment” and “laboratory test reports”1 should be displayed | same | pass |
- Doctor appointments
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Doctor clicks on “search” button without entering any values | No record should be displayed | same | pass |
2 | Doctor selects the date and clicks on “search” button | Records should be displayed of that particular date | same | pass |
- Doctor earnings
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Doctor clicks on “search” without entering any values | No record should be displayed | same | pass |
2 | Doctor enters the date and clicks on “search” button | Records should be displayed from“from date” to “to date” of the particular date | same | pass |
- Admin home page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Admin clicks on the Admin profile | The control stays on the “admin account” page itself | same | pass |
2 | Admin clicks on the “Admin profile” | Redirects to the “admin profile” page | same | pass |
3 | Admin clicks on the “appointment” | Redirects to the “appointments” page | same | pass |
4 | Admin clicks on the “patient reports” | Redirects to the “patient record” page | same | pass |
6 | Admin clicks on the “Doctor” | Redirects to the “doctor records” page | same | pass |
7 | Admin clicks on the “employee” | Redirects to the “employee records” page | same | pass |
8 | Admin clicks on the” account” | Redirects to the “employee salary” page | same | pass |
9 | Admin clicks on the “expenses” | Redirects to the “expenses” page | same | Pass |
10 | Admin clicks on “test type” | Redirects to the “test types” page | same | Pass |
11 | Admin clicks on “prescription” | Redirects to the “add prescription” page | ||
12 | Admin clicks on “logout” | “logged out successfully” message should be displayed | same | pass |
- Admin profile page
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Admin clicks on “update profile” without entering any values | “required” message should be displayed | same | pass |
2 | Admin enters all the fields and clicks on “update profile” button | “admin record updated successfully” message should be displayed | same | pass |
- Add Expenses
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Admin clicks on “add” without entering any values | “required” message should be displayed | same | pass |
2 | Admin clicks on “add “button | “record inserted successfully” message should be displayed | same | pass |
- Add Test Type
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Admin clicks “add” button without entering any values | “required” message should be displayed | same | pass |
2 | Admin enters all the fields and clicks on “add” button | “record inserted successfully” message should be displayed | same | Pass |
3 | Admin clicks on “reset” button | Clears all the fields | same | pass |
- Add prescription
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Admin clicks “add” button without entering any values | “required” message should be displayed | same | pass |
2 | Admin enters all the fields and clicks on “add” button | “record inserted successfully” message should be displayed | same | Pass |
3 | Admin clicks on “reset” button | Clears all the fields | same | pass |
- Add Doctor
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Admin clicks on “add” without entering any values | “required” message should be displayed | same | pass |
2 | Admin enters all the fields and clicks on “add” button | “record inserted successfully” message should be displayed | same | pass |
3 | Admin clicks on “reset” button | Clears all the fields | same | pass |
- Add employee
Sl. No | User Action | Expected Result | Observed Output | Test Result |
1 | Admin clicks on “add” without entering any values | “required” message should be displayed | same | pass |
2 | Admin enters all the fields and clicks on “add” button | “ record inserted successfully” message should be displayed | same | pass |
3 | Admin clicks on “reset” button | Clears all the fields | same | pass |
Download Complete documentation of Online Clinic and Project source code
Note: Here we shared Test Cases For Online Clinic. Like this we make test cases for your project. Kindly contact us in Whatsapp.
Leave a reply