Decision Table for the appointment form validation

Bharath NuBharath Nu
2 min read

Question: 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.

Answer:
Conditions and Actions

Condition No.Condition Description
C1Any field is blank
C2Email is invalid
C3Phone number is invalid
C4Appointment date/time is unavailable

Actions

Action No.Action Description
A1Display "All fields are required"
A2Display "Please enter a valid email"
A3Display "Please enter a valid phone number"
A4Display "Please choose another date/time"
A5Schedule the appointment successfully

Decision Table

Rule No.C1 (Blank)C2 (Invalid Email)C3 (Invalid Phone)C4 (Date Unavailable)A1A2A3A4A5
R1Yes---Yes----
R2NoYes---Yes---
R3NoNoYes---Yes--
R4NoNoNoYes---Yes-
R5NoNoNoNo----Yes
0
Subscribe to my newsletter

Read articles from Bharath Nu directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Bharath Nu
Bharath Nu