You are Testing a Form that allows users to schedule appointments with a doctor.

The form has the following fields: First name, Last name, email ,phone number and appointment date/time.

·

2 min read

  • If any Field is Blank, we should display "All fields are Required".

  • If email is invalid, we should display "Please enter a valid email".

  • If Phone number is invalid, we should display "Please enter a valid Phone Number".

  • If appointment date/time is not available, it should display "Please choose another date/time".

  • If all fields are correct and the appointment is available, we should schedule the appointment successfully.

    For these requirement write down the correct list of conditions in form of decision table.

Below is the Decision Table for the Doctor's Appointment:

T stands for Correct Data -First Name, Last Name, Email, Phone number, Schedule Appointments.

F stands for incorrect First Name, Last Name, Email, Phone number, Schedule Appointments.

E stands for the Error message to be displayed to the user as per incorrect DATA entered by the User.

TC stands for the Test case.

Test Case 1 – The First Name, Last Name, Email, Phone number, Schedule Appointments date/time ,entered by the user are all correct. Hence, the user should be able to Schedule the Appointment Successfully

Test Case 2 – The First Name was blank, Hence an error message should be shown to the user mentioning as "All fields are Required".

Test Case 3 –The Last Name was blank, Hence an error message should be shown to the user mentioning as "All fields are Required".

Test Case 4 – The email id is wrong, Hence, an error message should be shown to the user mentioning “Please enter a valid email”.

Test Case 5 – The phone number field incorrect. Hence, an error message should be shown to the user mentioning “Please enter a valid Phone Number”.

Test Case 6– The appointment date/time is not available, Hence, an error message should be shown to the user mentioning "Please choose another date/time".

Decision tables are easy to understand, and everyone can use and implement this design and testing method, scenarios and test cases without prior experience.

Identify the input conditions and possible values. Define the outcomes or expected results. Use this decision table to generate systematically design test cases. Start executing the test cases derived from the decision table. Report issues encountered, to the development team for resolution.