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. NoUser ActionExpected ResultObserved OutputTest Result
1User does not enter any value and clicks Login.โ€œRequiredโ€message should be displayedsamepass
2User enters login ID but not password and clicks Login.โ€œRequiredโ€ message should be displayed for password fieldsame    pass
3User enters password but not login ID and clicks Login.โ€œRequiredโ€ message should be displayed for login IDsame    pass
4User enters wrong login ID or wrong passwordโ€œInvalid login ID or invalid passwordโ€  should be displayedsame    pass
5User enters login ID and wrong passwordโ€œinvalid passwordโ€ message should be displayedsame    pass
6On successful login.โ€œMake an appointment pageโ€ should be displayedsame    pass
7Login Failure.The Control stays on the Login page itselfsamepass
  • Change password
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1User clicks change password button without entering any values.โ€œRequiredโ€ message appears near all the blank fields.samepass
2User enters Wrong old password  and clicks change passwordโ€œold password is not valid..โ€ message should be displayedsamepass
3User 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.samepass
4New password and the confirm password do not match.โ€œFields do not matchโ€ message appears near the confirm password field.samepass
6User enters the old password and new password and confirm password and clicks โ€œChangeโ€ buttonโ€œPassword is changed Successfullyโ€ message will be displayedsamepass
  • Forgot password
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1User  clicks on โ€œrecover passwordโ€ without entering any valuesโ€œRequiredโ€ message should be displayed.samepass
2User  enters all the fields and clicks on recover passwordโ€œchange passwordโ€ form should be displayedsamepass
3User  enters wrong informationโ€œInvalid informationโ€ message should be displayedsamepass
4User  clicks on reset buttonClears all the fieldssamepass
  • Patient Registration page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Patient clicks on registerwithout entering any valuesโ€œRequiredโ€ message should be displayed.samepass
2Patient enters all the fields and clicks on registerโ€œpatient registration successfullyโ€ message and โ€œpatient Idโ€ is should be displayedsamepass
3Patient clicks on reset buttonClears all the fieldssamepass
4Patient clicks on click here to make an appointment buttonRedirects to the โ€œappointments, doctor recordsโ€ pagesamepass
  • Make appointment page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Patient  clicks on โ€œmake an appointmentโ€ without entering all the valuesโ€œrequiredโ€message should be displayedsamepass
2Patient enters all the fields and clicks on โ€œmake an appointmentโ€ buttonredirects to the โ€œappointment timeโ€ pagesamepass
  • Patient home page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Patient clicks on the โ€œpatient accountโ€The control stays on the โ€œpatient accountโ€ page itselfsamepass
2Patient clicks on the โ€œpatient profileโ€Redirects to the โ€œprofile โ€œ pagesamepass
3Patient clicks on the โ€œchange passwordโ€Redirects to the โ€œchange passwordโ€ pagesamepass
4Patient clicks on the โ€œappointmentโ€Redirects to the โ€œappointmentsโ€ pagesamepass
6Patient  clicks on the โ€œtreatment detailโ€Redirects to the โ€œtreatmentโ€ pagesamepass
7Patient  clicks on the โ€œlab test reportsโ€Redirects to the โ€œ laboratory reportโ€ pagesamepass
8Patient clicks on โ€œlogoutโ€โ€œlogged out successfullyโ€ message should be displayedsamepass
  • Patient profile page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Patient  clicks on โ€œupdate profileโ€ without entering any valuesโ€œrequiredโ€  message should be displayedsamepass
2Patient enters all the fields clicks on โ€œupdate profileโ€ buttonโ€œrecord updated successfullyโ€ message should be displayedsamepass
  • Employee home page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Employee clicks on the โ€œEmployee Homeโ€The control stays on the โ€œemployee accountโ€ page itselfsamepass
2Employee clicks on the โ€œEmployee profileโ€Redirects to the โ€œ profileโ€ pagesamepass
3Employee clicks on the โ€œchange passwordโ€Redirects to theโ€œchange passwordโ€ pagesamepass
4Employee clicks on the โ€œappointmentโ€Redirects to theโ€œappointmentsโ€ pagesamepass
6Employee clicks on the โ€œlaboratoryโ€Redirects to theโ€œlaboratoryโ€ pagesamepass
7Employee clicks on the โ€œpatient reportโ€Redirects to theโ€œpatient reportโ€ pagesamepass
8Employee clicks on the โ€œtimingsโ€Redirects to theโ€œdoctor timingsโ€ pagesamepass
9Employee clicks on the โ€œexpensesโ€Redirects to theโ€œexpensesโ€ pagesamePass
10Employee clicks on โ€œlogoutโ€โ€œlogged out successfullyโ€ message should be displayedsamepass
  • Employee profile page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Employee  clicks on โ€œupdate profileโ€ without entering any valuesโ€œrequiredโ€ message should be displayedsamepass
2Employee enters all the fields and clicks on โ€œupdate profileโ€ buttonโ€œRecord updated successfullyโ€ message should be displayedsamepass
  • Laboratory Test
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Lab assistant clicks on โ€œupdate labtestโ€ without entering any fieldsโ€œrequiredโ€ message should be displayedsamepass
2Lab assistant  enters all the fields and clicks on  โ€œupdate labtestโ€ buttonโ€œrecord inserted successfullyโ€ message should be displayedsamePass
  • Doctor home page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Doctor clicks on the โ€œDoctor  homeโ€The control stays on the โ€œpatient accountโ€ page itselfsamepass
2Doctor clicks on the โ€œDoctor  profileโ€Redirects to theโ€œdoctor profileโ€ pagesamepass
3Doctor clicks on the โ€œchange passwordโ€Redirects to theโ€œchange passwordโ€ pagesamepass
4Doctor clicks on the โ€œappointment recordsโ€Redirects to theโ€œappointmentโ€ pagesamepass
6Doctor clicks on the โ€œreportsโ€Redirects to the โ€œ patient reportโ€ pagesamepass
7Doctor clicks on the โ€œtimingsโ€Redirects to theโ€œtimingsโ€ pagesamepass
8Doctor clicks on the โ€œearningsโ€Redirects to theโ€œdoctorโ€™s earningsโ€ pagesamepass
9Doctor  clicks on โ€œlogoutโ€โ€œlogged out successfullyโ€ message will be displayedsamepass
  • Doctor profile page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Doctor clicks on โ€œupdate profileโ€ without entering any valuesโ€œrequiredโ€ message should be displayedsamepass
2Doctor  enters all the fields and clicks on โ€œupdate profile โ€œ buttonโ€œrecord updated successfullyโ€ message should be displayedsamepass
  • Patient report
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Doctor clicks on โ€œsubmitโ€ button without entering patient IDNo record should be displayedsamepass
2Doctor  enters theโ€ patient IDโ€ and clicks on โ€œsubmitโ€ buttonโ€œPatient nameโ€ along with โ€œtreatmentโ€ and โ€œlaboratory test reportsโ€1 should be displayedsamepass
  • Doctor appointments
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Doctor  clicks on โ€œsearchโ€ button without entering any valuesNo record should be displayedsamepass
2Doctor selects the date and clicks on โ€œsearchโ€ buttonRecords should be displayed of that particular datesamepass
  • Doctor earnings
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Doctor clicks on โ€œsearchโ€ without entering any valuesNo record should be displayedsamepass
2Doctor  enters the date and clicks on โ€œsearchโ€ buttonRecords should be displayed fromโ€œfrom dateโ€ to โ€œto dateโ€ of the particular datesamepass
  • Admin home page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Admin clicks on the Admin profileThe control stays on the โ€œadmin accountโ€ page itselfsamepass
2Admin clicks on the โ€œAdmin profileโ€Redirects to the โ€œadmin profileโ€ pagesamepass
3Admin clicks on the โ€œappointmentโ€Redirects to the โ€œappointmentsโ€ pagesamepass
4Admin clicks on the โ€œpatient reportsโ€Redirects to the โ€œpatient recordโ€ pagesamepass
6Admin clicks on the โ€œDoctorโ€Redirects to the โ€œdoctor recordsโ€ pagesamepass
7Admin clicks on the โ€œemployeeโ€Redirects to the โ€œemployee recordsโ€ pagesamepass
8Admin clicks on theโ€ accountโ€Redirects to the โ€œemployee salaryโ€ pagesamepass
9Admin clicks on the โ€œexpensesโ€Redirects to the โ€œexpensesโ€ pagesamePass
10Admin clicks on โ€œtest typeโ€Redirects to the โ€œtest typesโ€ pagesamePass
11Admin clicks on โ€œprescriptionโ€Redirects to the โ€œadd prescriptionโ€ page  
12Admin clicks on โ€œlogoutโ€โ€œlogged out successfullyโ€ message should be displayedsamepass
  • Admin profile page
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Admin clicks on โ€œupdate profileโ€ without entering any valuesโ€œrequiredโ€ message should be displayedsamepass
2Admin enters all the fields and clicks on โ€œupdate profileโ€ buttonโ€œadmin record updated successfullyโ€ message should be displayedsamepass
  • Add Expenses
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Admin clicks on โ€œaddโ€ without entering any valuesโ€œrequiredโ€ message should be displayedsamepass
2Admin clicks on โ€œadd โ€œbuttonโ€œrecord inserted successfullyโ€ message should be displayedsamepass
  • Add Test Type
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Admin clicks โ€œaddโ€ button without entering any valuesโ€œrequiredโ€ message should be displayedsamepass
2Admin enters all the fields and clicks on โ€œaddโ€ buttonโ€œrecord inserted successfullyโ€ message should be displayedsamePass
3Admin clicks on โ€œresetโ€ buttonClears all the fieldssamepass
  • Add prescription
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Admin clicks โ€œaddโ€ button without entering any valuesโ€œrequiredโ€ message should be displayedsamepass
2Admin enters all the fields and clicks on โ€œaddโ€ buttonโ€œrecord inserted successfullyโ€ message should be displayedsamePass
3Admin clicks on โ€œresetโ€ buttonClears all the fieldssamepass
  • Add Doctor
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Admin clicks on โ€œaddโ€ without entering any valuesโ€œrequiredโ€ message should be displayedsamepass
2Admin enters all the fields and clicks on โ€œaddโ€ buttonโ€œrecord inserted successfullyโ€ message should be displayedsamepass
3Admin clicks on โ€œresetโ€ buttonClears all the fieldssamepass
  • Add employee
Sl. NoUser ActionExpected ResultObserved OutputTest Result
1Admin clicks on โ€œaddโ€ without entering any valuesโ€œrequiredโ€ message should be displayedsamepass
2Admin enters all the fields and  clicks on โ€œaddโ€ buttonโ€œ record inserted successfullyโ€ message should be displayedsamepass
3Admin clicks on โ€œresetโ€ buttonClears all the fieldssamepass

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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.