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